Skip to content

Commit

Permalink
freight: stop transitively depending on junit 4
Browse files Browse the repository at this point in the history
  • Loading branch information
michalmac committed Dec 17, 2023
1 parent 47859fe commit 7dd42ca
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 7dd42ca

Please sign in to comment.