Skip to content

Commit

Permalink
deleted route in test input plans
Browse files Browse the repository at this point in the history
  • Loading branch information
tschlenther committed Aug 12, 2024
1 parent fccaf3e commit fbce0c8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion input/test.config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
</module>

<module name="plans">
<param name="inputPlansFile" value="https://svn.vsp.tu-berlin.de/repos/public-svn/matsim/scenarios/countries/de/kelheim/kelheim-v1.0/input/test.plans.xml"/>
<param name="inputPlansFile" value="provide plans file per code"/>
<param name="removingUnnecessaryPlanAttributes" value="true"/>
</module>

Expand Down
2 changes: 1 addition & 1 deletion input/test.with-drt.config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
</module>

<module name="plans">
<param name="inputPlansFile" value="https://svn.vsp.tu-berlin.de/repos/public-svn/matsim/scenarios/countries/de/kelheim/kelheim-v1.0/input/test.with-drt.plans.xml"/>
<param name="inputPlansFile" value="provide plans file per codes"/>
<param name="removingUnnecessaryPlanAttributes" value="true"/>
</module>

Expand Down
9 changes: 8 additions & 1 deletion src/test/java/org/matsim/run/RunKelheimIntegrationTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import org.matsim.core.config.ConfigUtils;
import org.matsim.core.controler.OutputDirectoryHierarchy;
import org.matsim.simwrapper.SimWrapperConfigGroup;
import org.matsim.testcases.MatsimTestUtils;

/**
* integration test.
Expand All @@ -16,6 +15,10 @@ public class RunKelheimIntegrationTest {
@Test
public final void runExamplePopulationTest() {
Config config = ConfigUtils.loadConfig("input/test.config.xml");
config.plans().setInputFile(
String.format("https://svn.vsp.tu-berlin.de/repos/public-svn/matsim/scenarios/countries/de/kelheim/kelheim-v%s/input/kelheim-v%s-test.plans.xml",
RunKelheimScenario.VERSION, RunKelheimScenario.VERSION));

config.controller().setLastIteration(1);
config.global().setNumberOfThreads(1);
config.qsim().setNumberOfThreads(1);
Expand All @@ -30,6 +33,10 @@ public final void runExamplePopulationTest() {
@Test
public final void runDrtExamplePopulationTest() {
Config config = ConfigUtils.loadConfig("input/test.with-drt.config.xml");
config.plans().setInputFile(
String.format("https://svn.vsp.tu-berlin.de/repos/public-svn/matsim/scenarios/countries/de/kelheim/kelheim-v%s/input/kelheim-v%s-test.with-drt.plans.xml",
RunKelheimScenario.VERSION, RunKelheimScenario.VERSION));

config.controller().setLastIteration(1);
config.controller().setOverwriteFileSetting(OutputDirectoryHierarchy.OverwriteFileSetting.deleteDirectoryIfExists);

Expand Down

0 comments on commit fbce0c8

Please sign in to comment.