From 69d0b8352b78e1f75e469a79a4311129c025d619 Mon Sep 17 00:00:00 2001 From: binh-dam-ibigroup <56846598+binh-dam-ibigroup@users.noreply.github.com> Date: Tue, 3 Dec 2024 08:45:06 -0500 Subject: [PATCH] refactor(CheckMonitoredTripTest): Adjust comments and fix typo. --- .../tripmonitor/jobs/CheckMonitoredTripTest.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/test/java/org/opentripplanner/middleware/tripmonitor/jobs/CheckMonitoredTripTest.java b/src/test/java/org/opentripplanner/middleware/tripmonitor/jobs/CheckMonitoredTripTest.java index 799b89438..80d90ff00 100644 --- a/src/test/java/org/opentripplanner/middleware/tripmonitor/jobs/CheckMonitoredTripTest.java +++ b/src/test/java/org/opentripplanner/middleware/tripmonitor/jobs/CheckMonitoredTripTest.java @@ -792,18 +792,18 @@ void canUnsnoozeTrip(ZonedDateTime lastCheckedTime, ZonedDateTime clockTime, boo } private static Stream createCanUnsnoozeTripCases() { - // (Trips from above response above starts on Tuesday, June 9, 2020 at 8:40am and ends at 8:58am.) + // (Trips for these tests start on Tuesday, June 9, 2020 at 8:40am and ends at 8:58am.) ZonedDateTime tuesday = noonMonday8June2020.withDayOfMonth(9).withHour(0).withMinute(0).withSecond(0); ZonedDateTime wednesday = tuesday.withDayOfMonth(10); return Stream.of( // Trip snoozed at 8:00am on Tuesday, June 9, 2020, should remain snoozed right after trip ends at 9:00am. Arguments.of(tuesday.withHour(8), tuesday.withHour(9), false), - // Trip snoozed at 8:00am on Tuesday, June 9, 2020, should unsnooze at 00:00am on Wednesday, June 10, 2020, - // but it is too early for the trip to be analyzed again. + // Trip snoozed at 8:00am on Tuesday, June 9, 2020, should unsnooze at 12:00am (midnight) on + // Wednesday, June 10, 2020, but it is too early for the trip to be analyzed again. Arguments.of(tuesday.withHour(8), wednesday, true), - // Trip snoozed on Monday, June 8, 2020 (a day before the trip starts), should unsnooze at 00:00 on - // Tuesday, June 9, 2020. + // Trip snoozed on Monday, June 8, 2020 (a day before the trip starts), should unsnooze at 12:00am (midnight) + // on Tuesday, June 9, 2020. Arguments.of(noonMonday8June2020, tuesday, true) ); }