From f01e26aa8e44ad17d63d49dae185f6481d250dc4 Mon Sep 17 00:00:00 2001 From: Leonard Ehrenfried Date: Mon, 4 Nov 2024 16:47:16 +0100 Subject: [PATCH] Add bicycle queries to smoke tests --- .../opentripplanner/smoketest/SeattleSmokeTest.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/application/src/test/java/org/opentripplanner/smoketest/SeattleSmokeTest.java b/application/src/test/java/org/opentripplanner/smoketest/SeattleSmokeTest.java index 506ee2732b9..f98bf8f3e0b 100644 --- a/application/src/test/java/org/opentripplanner/smoketest/SeattleSmokeTest.java +++ b/application/src/test/java/org/opentripplanner/smoketest/SeattleSmokeTest.java @@ -4,6 +4,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; +import static org.opentripplanner.client.model.RequestMode.BICYCLE; import static org.opentripplanner.client.model.RequestMode.BUS; import static org.opentripplanner.client.model.RequestMode.FLEX_ACCESS; import static org.opentripplanner.client.model.RequestMode.FLEX_DIRECT; @@ -27,6 +28,7 @@ import org.opentripplanner.client.model.TripPlan; import org.opentripplanner.client.parameters.TripPlanParameters; import org.opentripplanner.client.parameters.TripPlanParametersBuilder; +import org.opentripplanner.framework.collection.ListUtils; import org.opentripplanner.smoketest.util.RequestCombinationsBuilder; import org.opentripplanner.smoketest.util.SmokeTestRequest; @@ -173,13 +175,21 @@ public void sharedStop() throws IOException { } static List buildCombinations() { - return new RequestCombinationsBuilder() + var walk = new RequestCombinationsBuilder() .withLocations(SODO, ESPERANCE, CLYDE_HILL, RONALD_BOG_PARK, OLIVE_WAY, MOUNTAINLAKE_TERRACE) .withModes(TRANSIT, WALK) .withTime(SmokeTest.weekdayAtNoon()) .includeWheelchair() .includeArriveBy() .build(); + var bike = new RequestCombinationsBuilder() + .withLocations(SODO, ESPERANCE, OLIVE_WAY, MOUNTAINLAKE_TERRACE) + .withModes(TRANSIT, BICYCLE) + .withTime(SmokeTest.weekdayAtNoon()) + .includeArriveBy() + .build(); + + return ListUtils.combine(walk, bike); } @ParameterizedTest