Skip to content

Commit

Permalink
update test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
rakow committed Jul 4, 2023
1 parent e6e6614 commit b7ec5a4
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/test/java/org/matsim/run/RunDuesseldorfIntegrationTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,11 @@

public class RunDuesseldorfIntegrationTest {

private static final String URL = "https://svn.vsp.tu-berlin.de/repos/public-svn/matsim/scenarios/countries/de/duesseldorf/duesseldorf-v1.0/input/";

@Rule
public MatsimTestUtils utils = new MatsimTestUtils();

private void updateConfig(Config config) {

config.plans().setInputFile(URL + config.plans().getInputFile());
config.transit().setTransitScheduleFile(URL + config.transit().getTransitScheduleFile());
config.transit().setVehiclesFile(URL + config.transit().getVehiclesFile());
config.network().setInputFile(URL + config.network().getInputFile());


config.controler().setLastIteration(0);
config.strategy().setFractionOfIterationsToDisableInnovation(1);
config.controler().setOverwriteFileSetting(OutputDirectoryHierarchy.OverwriteFileSetting.deleteDirectoryIfExists);
Expand All @@ -43,7 +35,7 @@ public final void runNoLaneTestNormalCapacity() {

updateConfig(config);

MATSimApplication.execute(RunDuesseldorfScenario.class, config, "--no-lanes");
MATSimApplication.execute(RunDuesseldorfScenario.class, config);
}

@Test
Expand All @@ -53,7 +45,7 @@ public final void runNoLaneTestIncreasedCapacity() {
updateConfig(config);

MATSimApplication.execute(RunDuesseldorfScenario.class, config,
"--no-lanes", "--infiniteCapacity");
"--infiniteCapacity");
}

@Ignore
Expand Down

0 comments on commit b7ec5a4

Please sign in to comment.