From a4fa84c285fe710ee0f1cdd747790da678c030ae Mon Sep 17 00:00:00 2001 From: Viljami Nurminen Date: Tue, 14 Mar 2023 12:22:23 +0200 Subject: [PATCH] Fix unit tests based on testagency GTFS --- .../model/impl/OtpTransitServiceBuilderTest.java | 2 +- .../model/impl/OtpTransitServiceImplTest.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/java/org/opentripplanner/model/impl/OtpTransitServiceBuilderTest.java b/src/test/java/org/opentripplanner/model/impl/OtpTransitServiceBuilderTest.java index f19cdd63d7a..070b4fe546d 100644 --- a/src/test/java/org/opentripplanner/model/impl/OtpTransitServiceBuilderTest.java +++ b/src/test/java/org/opentripplanner/model/impl/OtpTransitServiceBuilderTest.java @@ -73,7 +73,7 @@ public void testGetAllFrequencies() { public void testGetRoutes() { Collection routes = subject.getRoutes().values(); - assertEquals(18, routes.size()); + assertEquals(19, routes.size()); assertEquals("Route{agency:1 BUS 1}", first(routes).toString()); } diff --git a/src/test/java/org/opentripplanner/model/impl/OtpTransitServiceImplTest.java b/src/test/java/org/opentripplanner/model/impl/OtpTransitServiceImplTest.java index 5f8bbe0117b..f12b2fa0640 100644 --- a/src/test/java/org/opentripplanner/model/impl/OtpTransitServiceImplTest.java +++ b/src/test/java/org/opentripplanner/model/impl/OtpTransitServiceImplTest.java @@ -104,7 +104,7 @@ public void testGetAllStations() { public void testGetAllStops() { Collection stops = subject.stopModel().listRegularStops(); - assertEquals(22, stops.size()); + assertEquals(25, stops.size()); assertEquals("RegularStop{F:A A}", first(stops).toString()); } @@ -115,7 +115,7 @@ public void testGetAllStopTimes() { stopTimes.addAll(subject.getStopTimesForTrip(trip)); } - assertEquals(80, stopTimes.size()); + assertEquals(85, stopTimes.size()); assertEquals( "StopTime(seq=1 stop=F:A trip=agency:1.1 times=00:00:00-00:00:00)", first(stopTimes).toString() @@ -126,7 +126,7 @@ public void testGetAllStopTimes() { public void testGetAllTrips() { Collection trips = subject.getAllTrips(); - assertEquals(33, trips.size()); + assertEquals(34, trips.size()); assertEquals("Trip{agency:1.1 1}", first(trips).toString()); }