Skip to content

Commit 4d37877

Browse files
committed
test to new style
1 parent f131b18 commit 4d37877

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

application/src/test/java/org/opentripplanner/osm/tagmapping/FinlandMapperTest.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,10 @@ void testUseSidePath() {
174174
assertEquals(9, wps.getDataForWay(wayWithBicycleSidePath).forward().walkSafety(), EPSILON);
175175
var wayWithFootSidePath = OsmWay.of().withTag("foot", "use_sidepath").build();
176176
assertEquals(9, wps.getDataForWay(wayWithFootSidePath).forward().walkSafety(), EPSILON);
177-
var wayWithBoth = new OsmWay();
178-
wayWithBoth.addTag("foot", "use_sidepath");
179-
wayWithBoth.addTag("bicycle", "use_sidepath");
177+
var wayWithBoth = OsmWay.of()
178+
.withTag("foot", "use_sidepath")
179+
.withTag("bicycle", "use_sidepath")
180+
.build();
180181
assertEquals(9, wps.getDataForWay(wayWithBoth).forward().walkSafety(), EPSILON);
181182
}
182183

0 commit comments

Comments
 (0)