File tree Expand file tree Collapse file tree
main/java/org/opentripplanner/transit/service
test/java/org/opentripplanner/transit/service Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -153,6 +153,12 @@ Collection<Trip> getTripsForStop(StopLocation stop) {
153153 .collect (Collectors .toList ());
154154 }
155155
156+ /**
157+ * Checks if the last scheduled service date for the stop is today or in the future.
158+ *
159+ * @param stop the stop to check
160+ * @return true if the stop is in service today or later, false otherwise
161+ */
156162 boolean isStopInService (StopLocation stop ) {
157163 LocalDate endOfServiceDate = endOfServiceDateForStop .get (stop );
158164 return (
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ class DefaultTransitServiceTest {
4949 .build ();
5050 private static final RegularStop STOP_B = TEST_MODEL .stop ("B" ).withParentStation (STATION ).build ();
5151 private static final RegularStop STOP_C = TEST_MODEL .stop ("C" ).withVehicleType (BUS ).build ();
52- private static final RegularStop STOP_ONE = TEST_MODEL .stop ("Stop_1" ) // added automatically to pattern by timetableRepositoryTest (same name)
52+ private static final RegularStop STOP_ONE = TEST_MODEL .stop ("Stop_1" )
5353 .withVehicleType (TRAM )
5454 .build ();
5555 private static final FeedScopedId SERVICE_ID = new FeedScopedId ("FEED" , "SERVICE" );
You can’t perform that action at this time.
0 commit comments