Skip to content

Commit

Permalink
Improve test assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardehrenfried committed Aug 1, 2024
1 parent d3685d3 commit 74949a1
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.opentripplanner.smoketest;

import static com.google.common.truth.Truth.assertThat;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
Expand Down Expand Up @@ -160,8 +161,8 @@ 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());
assertThat(Set.of("510", "415")).contains(leg.route().shortName().get());
assertThat(Set.of("Sound Transit", "Community Transit")).contains(leg.route().agency().name());

var stop = leg.from().stop().get();
assertEquals("Olive Way & 6th Ave", stop.name());
Expand Down

0 comments on commit 74949a1

Please sign in to comment.