Skip to content

Commit

Permalink
Add bicycle queries to smoke tests
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardehrenfried committed Nov 4, 2024
1 parent aea9b45 commit f01e26a
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;

Expand Down Expand Up @@ -173,13 +175,21 @@ public void sharedStop() throws IOException {
}

static List<TripPlanParameters> 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
Expand Down

0 comments on commit f01e26a

Please sign in to comment.