From 25dc513bd129f8b5f9955bf294be5f9332e6d143 Mon Sep 17 00:00:00 2001 From: Leonard Ehrenfried Date: Thu, 15 Feb 2024 21:13:11 +0100 Subject: [PATCH] Add assertion for particular bus 510 trip --- pom.xml | 2 +- .../org/opentripplanner/smoketest/SeattleSmokeTest.java | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 406bcea932a..85a0c24db7d 100644 --- a/pom.xml +++ b/pom.xml @@ -949,7 +949,7 @@ org.opentripplanner otp-client - 0.0.24 + 0.0.27 test diff --git a/src/test/java/org/opentripplanner/smoketest/SeattleSmokeTest.java b/src/test/java/org/opentripplanner/smoketest/SeattleSmokeTest.java index 5acb1e61613..e791edac651 100644 --- a/src/test/java/org/opentripplanner/smoketest/SeattleSmokeTest.java +++ b/src/test/java/org/opentripplanner/smoketest/SeattleSmokeTest.java @@ -154,6 +154,12 @@ public void sharedStop() throws IOException { var first = itineraries.getFirst(); var leg = first.transitLegs().getFirst(); assertEquals("510", leg.route().shortName().get()); + assertEquals("Sound Transit", leg.route().agency().name()); + + var stop = leg.from().stop().get(); + assertEquals("Olive Way & 6th Ave", stop.name()); + assertEquals("kcm:1040", stop.id()); + assertEquals("1040", stop.code().get()); } @Test