Skip to content

Commit

Permalink
Add assertion for particular bus 510 trip
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardehrenfried committed Feb 15, 2024
1 parent a7bebee commit 25dc513
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,7 @@
<dependency>
<groupId>org.opentripplanner</groupId>
<artifactId>otp-client</artifactId>
<version>0.0.24</version>
<version>0.0.27</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 25dc513

Please sign in to comment.