Skip to content

Commit

Permalink
Merge pull request #2998 from matsim-org/remove-junit4-from-freight
Browse files Browse the repository at this point in the history
freight: stop transitively depending on junit 4
  • Loading branch information
michalmac authored Dec 17, 2023
2 parents 47859fe + 7dd42ca commit 845c662
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 6 additions & 0 deletions contribs/freight/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@
<groupId>com.graphhopper</groupId>
<artifactId>jsprit-analysis</artifactId>
<version>${jsprit.version}</version>
<exclusions>
<exclusion>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</exclusion>
</exclusions>
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@
import java.util.Collection;
import java.util.List;

import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.not;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.junit.jupiter.api.Assertions.*;

public class MatsimTransformerTest {
Expand Down Expand Up @@ -78,7 +75,7 @@ void whenTransforming_jSpritType2matsimType_withCaching_itIsNotCached() {
.newInstance("myType").addCapacityDimension(0, 50).setCostPerDistance(10.0).setCostPerTransportTime(5.0)
.setFixedCost(100.0).build();
VehicleType matsimType = MatsimJspritFactory.createMatsimVehicleType(jspritType);
assertThat(matsimType, is(not(MatsimJspritFactory.createMatsimVehicleType(jspritType))));
assertNotEquals(matsimType, MatsimJspritFactory.createMatsimVehicleType(jspritType));
}

@Test
Expand Down

0 comments on commit 845c662

Please sign in to comment.