Skip to content

Commit

Permalink
added test for parking locations
Browse files Browse the repository at this point in the history
  • Loading branch information
GregorRyb committed Aug 29, 2023
1 parent 0c96462 commit 556c448
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/test/java/org/matsim/run/RunLeipzigIntegrationTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import org.matsim.analysis.ParkingLocation;
import org.matsim.api.core.v01.Id;
import org.matsim.api.core.v01.network.Network;
import org.matsim.application.MATSimApplication;
Expand Down Expand Up @@ -45,6 +46,8 @@ public final void runPoint1pctIntegrationTest() {
.exists()
.isNotEmptyDirectory();

new ParkingLocation().execute("--directory", output.toString());

Network network = NetworkUtils.readNetwork(output + "/" + config.controler().getRunId() + ".output_network.xml.gz");
assertTrue(network.getLinks().get(Id.createLinkId("24232899")).getFreespeed() < 12.501000000000001);
assertTrue(network.getLinks().get(Id.createLinkId("24675139")).getFreespeed() < 7.497);
Expand Down

1 comment on commit 556c448

@simei94
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

Please sign in to comment.