Skip to content
This repository has been archived by the owner on Nov 29, 2024. It is now read-only.

Commit

Permalink
Merge pull request #191 from matsim-vsp/dependabot/maven/project.pare…
Browse files Browse the repository at this point in the history
…nt.version-16.0-2024w01

Bump project.parent.version from 16.0-2023w50 to 16.0-2024w01
  • Loading branch information
kt86 authored Jan 3, 2024
2 parents 2b359bb + 8df8fff commit f2869f7
Show file tree
Hide file tree
Showing 62 changed files with 308 additions and 294 deletions.
17 changes: 16 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<parent>
<groupId>org.matsim</groupId>
<artifactId>matsim-all</artifactId>
<version>16.0-2023w50</version>
<version>16.0-2024w01</version>
<!-- <version>16.0-2023w41</version>-->
<!-- <version>16.0-2023w23</version>-->
<!-- <version>16.0-SNAPSHOT</version>-->
Expand Down Expand Up @@ -53,6 +53,21 @@
<version>${project.parent.version}</version>
<scope>test</scope>
</dependency>


<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.10.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>5.10.1</version>
<scope>test</scope>
</dependency>

</dependencies>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@

package org.matsim.freight.logistics.adapterTests;

import static org.junit.Assert.*;
import static org.junit.jupiter.api.Assertions.*;

import java.util.ArrayList;
import org.junit.Before;
import org.junit.Test;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.matsim.api.core.v01.Id;
import org.matsim.api.core.v01.Scenario;
import org.matsim.api.core.v01.network.Link;
Expand All @@ -51,7 +51,7 @@ public class CollectionResourceTest {
private Id<Link> collectionLinkId;
private CarrierCapabilities capabilities;

@Before
@BeforeEach
public void initialize() {
Config config = new Config();
config.addCoreModules();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@

package org.matsim.freight.logistics.adapterTests;

import static org.junit.Assert.*;
import static org.junit.jupiter.api.Assertions.*;

import java.util.ArrayList;
import org.junit.Before;
import org.junit.Test;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.matsim.api.core.v01.Id;
import org.matsim.api.core.v01.Scenario;
import org.matsim.api.core.v01.network.Link;
Expand All @@ -51,7 +51,7 @@ public class DistributionResourceTest {
private LSPCarrierResource distributionResource;
private Id<Link> distributionLinkId;

@Before
@BeforeEach
public void initialize() {
Config config = new Config();
config.addCoreModules();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@

package org.matsim.freight.logistics.adapterTests;

import static org.junit.Assert.*;
import static org.junit.jupiter.api.Assertions.*;

import java.util.ArrayList;
import org.junit.Before;
import org.junit.Test;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.matsim.api.core.v01.Id;
import org.matsim.api.core.v01.Scenario;
import org.matsim.api.core.v01.network.Link;
Expand All @@ -49,7 +49,7 @@ public class MainRunResourceTest {
private Carrier carrier;
private LSPCarrierResource mainRunResource;

@Before
@BeforeEach
public void initialize() {
Config config = new Config();
config.addCoreModules();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import java.io.ByteArrayOutputStream;
import java.util.ArrayList;
import java.util.List;
import org.junit.Assert;
import org.junit.Test;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.Assertions;
import org.matsim.api.core.v01.Id;
import org.matsim.api.core.v01.events.Event;
import org.matsim.core.api.experimental.events.EventsManager;
Expand Down Expand Up @@ -48,7 +48,7 @@ public void testReader() {
ControllerConfigGroup.EventsFileFormat.xml);
eventsManager.finishProcessing();

Assert.assertArrayEquals(lspEvents.toArray(), handler.handledEvents.toArray());
Assertions.assertArrayEquals(lspEvents.toArray(), handler.handledEvents.toArray());
}

private static class TestEventHandler
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,18 @@

package org.matsim.freight.logistics.example.lsp.initialPlans;

import static org.junit.Assert.fail;
import static org.junit.jupiter.api.Assertions.fail;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.junit.Rule;
import org.junit.Test;
import org.junit.jupiter.api.extension.RegisterExtension;
import org.junit.jupiter.api.Test;
import org.matsim.freight.logistics.example.lsp.initialPlans.ExampleSchedulingOfTransportChainHubsVsDirect.SolutionType;
import org.matsim.testcases.MatsimTestUtils;

public class ExampleSchedulingOfTransportChainHubsVsDirectTest {
private static final Logger log = LogManager.getLogger(ExampleSchedulingOfTransportChainHubsVsDirectTest.class);
@Rule
@RegisterExtension
public final MatsimTestUtils utils = new MatsimTestUtils();

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@

package org.matsim.freight.logistics.example.lsp.initialPlans;

import static org.junit.Assert.fail;
import static org.junit.jupiter.api.Assertions.fail;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.junit.Rule;
import org.junit.Test;
import org.junit.jupiter.api.extension.RegisterExtension;
import org.junit.jupiter.api.Test;
import org.matsim.testcases.MatsimTestUtils;

public class ExampleTwoEchelonGridTest {
private static final Logger log = LogManager.getLogger(ExampleTwoEchelonGridTest.class);
@Rule
@RegisterExtension
public final MatsimTestUtils utils = new MatsimTestUtils();

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@

package org.matsim.freight.logistics.example.lsp.lspReplanning;

import static org.junit.Assert.assertTrue;
import static org.junit.jupiter.api.Assertions.assertTrue;

import java.util.*;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.extension.RegisterExtension;
import org.junit.jupiter.api.Test;
import org.matsim.api.core.v01.Id;
import org.matsim.api.core.v01.Scenario;
import org.matsim.api.core.v01.network.Link;
Expand Down Expand Up @@ -55,12 +55,12 @@

public class CollectionLSPReplanningTest {

@Rule
@RegisterExtension
public final MatsimTestUtils utils = new MatsimTestUtils();

private LSP collectionLSP;

@Before
@BeforeEach
public void initialize() {

Config config = new Config();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@

package org.matsim.freight.logistics.example.lsp.lspScoring;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.matsim.freight.logistics.resourceImplementations.ResourceImplementationUtils.createDefaultSimpleForwardLogisticChainScheduler;
import static org.matsim.freight.logistics.resourceImplementations.ResourceImplementationUtils.createSingleLogisticChainShipmentAssigner;

import java.util.*;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.extension.RegisterExtension;
import org.junit.jupiter.api.Test;
import org.matsim.api.core.v01.Id;
import org.matsim.api.core.v01.Scenario;
import org.matsim.api.core.v01.network.Link;
Expand All @@ -51,12 +51,12 @@

public class CollectionLSPScoringTest {

@Rule
@RegisterExtension
public final MatsimTestUtils utils = new MatsimTestUtils();
private final int numberOfShipments = 25;
private LSP collectionLSP;

@Before
@BeforeEach
public void initialize() {
Config config = ConfigUtils.createConfig();
config.network().setInputFile("scenarios/2regions/2regions-network.xml");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
package org.matsim.freight.logistics.example.lsp.lspScoring;

import org.junit.Assert;
import org.junit.Rule;
import org.junit.Test;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.extension.RegisterExtension;
import org.junit.jupiter.api.Test;
import org.matsim.api.core.v01.Scenario;
import org.matsim.core.config.Config;
import org.matsim.core.config.groups.VspExperimentalConfigGroup;
Expand All @@ -13,7 +12,7 @@

public class ExampleLSPScoringTest {

@Rule
@RegisterExtension
public final MatsimTestUtils utils = new MatsimTestUtils();

@Test
Expand All @@ -31,7 +30,7 @@ public void testMain() {
controler.run();

for (LSP lsp : LSPUtils.getLSPs(scenario).getLSPs().values()) {
Assert.assertEquals(13.245734044444207, lsp.getSelectedPlan().getScore(), Double.MIN_VALUE);
Assertions.assertEquals(13.245734044444207, lsp.getSelectedPlan().getScore(), Double.MIN_VALUE);
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@

package org.matsim.freight.logistics.example.lsp.lspScoring;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;

import java.util.*;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.extension.RegisterExtension;
import org.junit.jupiter.api.Test;
import org.matsim.api.core.v01.Id;
import org.matsim.api.core.v01.Scenario;
import org.matsim.api.core.v01.network.Link;
Expand Down Expand Up @@ -55,13 +55,13 @@

public class MultipleIterationsCollectionLSPScoringTest {

@Rule
@RegisterExtension
public final MatsimTestUtils utils = new MatsimTestUtils();

private final int numberOfShipments = 25;
private LSP collectionLSP;

@Before
@BeforeEach
public void initialize() {

Config config = new Config();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
package org.matsim.freight.logistics.example.lsp.mobsimExamples;

import static org.junit.Assert.fail;
import static org.junit.jupiter.api.Assertions.fail;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.junit.Rule;
import org.junit.Test;
import org.junit.jupiter.api.extension.RegisterExtension;
import org.junit.jupiter.api.Test;
import org.matsim.testcases.MatsimTestUtils;

/**
* @author Kai Martins-Turner (kturner)
*/
public class ExampleMobsimOfSimpleLSPTest {
private static final Logger log = LogManager.getLogger(ExampleMobsimOfSimpleLSPTest.class);
@Rule
@RegisterExtension
public final MatsimTestUtils utils = new MatsimTestUtils();

@Test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package org.matsim.freight.logistics.example.lsp.multipleChains;

import static org.junit.Assert.*;
import static org.junit.jupiter.api.Assertions.*;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.extension.RegisterExtension;
import org.junit.jupiter.api.Test;
import org.matsim.api.core.v01.Id;
import org.matsim.api.core.v01.Scenario;
import org.matsim.api.core.v01.network.Link;
Expand Down Expand Up @@ -47,7 +47,7 @@ public class MultipleChainsReplanningTest {
.setCostPerDistanceUnit(0.01)
.setCostPerTimeUnit(0.01)
.build();
@Rule
@RegisterExtension
public final MatsimTestUtils utils = new MatsimTestUtils();
int initialPlanCount;
int initialPlanShipmentPlanCount;
Expand Down Expand Up @@ -190,7 +190,7 @@ private static List<LSPResource> createResourcesListFromLSPPlans(List<LSPPlan> l
return resourceList;
}

@Before
@BeforeEach
public void initialize() {

Config config = prepareConfig();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package org.matsim.freight.logistics.example.lsp.multipleChains;

import static org.junit.Assert.assertTrue;
import static org.junit.jupiter.api.Assertions.assertTrue;

import java.util.*;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.extension.RegisterExtension;
import org.junit.jupiter.api.Test;
import org.matsim.api.core.v01.Id;
import org.matsim.api.core.v01.Scenario;
import org.matsim.api.core.v01.network.Link;
Expand Down Expand Up @@ -54,7 +54,7 @@ public class WorstPlanSelectorTest {
.setCostPerDistanceUnit(0.01)
.setCostPerTimeUnit(0.01)
.build();
@Rule
@RegisterExtension
public final MatsimTestUtils utils = new MatsimTestUtils();
private LSP lsp;

Expand Down Expand Up @@ -218,7 +218,7 @@ private static List<LSPResource> createResourcesListFromLSPPlans(List<LSPPlan> l
return resourceList;
}

@Before
@BeforeEach
public void initialize() {

Config config = prepareConfig();
Expand Down
Loading

0 comments on commit f2869f7

Please sign in to comment.