Skip to content

Commit

Permalink
refactor(MobilityProfileRoutingTest): Migrate types.
Browse files Browse the repository at this point in the history
  • Loading branch information
binh-dam-ibigroup committed Nov 19, 2024
1 parent 76719d8 commit 334a52c
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import java.util.EnumMap;
import java.util.Map;
import org.junit.jupiter.api.Test;
import org.opentripplanner.openstreetmap.model.OSMWay;
import org.opentripplanner.osm.model.OsmWay;
import org.opentripplanner.street.model.StreetTraversalPermission;
import org.opentripplanner.street.model.edge.StreetEdge;
import org.opentripplanner.street.model.edge.StreetEdgeBuilder;
Expand All @@ -33,21 +33,21 @@ void canDetectHighwayFootwayTag() {
assertFalse(createServiceWay().isFootway());
}

private static OSMWay createServiceWay() {
OSMWay serviceWay = new OSMWay();
private static OsmWay createServiceWay() {
OsmWay serviceWay = new OsmWay();
serviceWay.addTag("highway", "service");
return serviceWay;
}

private static OSMWay createFootway() {
OSMWay footway = new OSMWay();
private static OsmWay createFootway() {
OsmWay footway = new OsmWay();
footway.addTag("highway", "footway");
return footway;
}

@Test
void canRemoveWalkPermissionOnNonFootway() {
OSMWay serviceWay = createServiceWay();
OsmWay serviceWay = createServiceWay();
StreetTraversalPermission permissions = StreetTraversalPermission.ALL;
assertEquals(
StreetTraversalPermission.BICYCLE_AND_CAR,
Expand All @@ -57,7 +57,7 @@ void canRemoveWalkPermissionOnNonFootway() {

@Test
void canPreserveWalkPermissionOnFootway() {
OSMWay footway = createFootway();
OsmWay footway = createFootway();
StreetTraversalPermission permissions = StreetTraversalPermission.ALL;
assertEquals(
StreetTraversalPermission.ALL,
Expand Down

0 comments on commit 334a52c

Please sign in to comment.