diff --git a/contribs/freight/pom.xml b/contribs/freight/pom.xml index 498ee947063..3c805db83f3 100644 --- a/contribs/freight/pom.xml +++ b/contribs/freight/pom.xml @@ -44,6 +44,12 @@ com.graphhopper jsprit-analysis ${jsprit.version} + + + junit + junit + + diff --git a/contribs/freight/src/test/java/org/matsim/freight/carriers/jsprit/MatsimTransformerTest.java b/contribs/freight/src/test/java/org/matsim/freight/carriers/jsprit/MatsimTransformerTest.java index 9514854743f..991ef3eb236 100644 --- a/contribs/freight/src/test/java/org/matsim/freight/carriers/jsprit/MatsimTransformerTest.java +++ b/contribs/freight/src/test/java/org/matsim/freight/carriers/jsprit/MatsimTransformerTest.java @@ -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 { @@ -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