Skip to content

Commit

Permalink
Merge pull request #1366 from folio-org/fix-getOpeningDayDurationTest
Browse files Browse the repository at this point in the history
Fix getOpeningDayDurationTest
  • Loading branch information
julianladisch authored Nov 6, 2023
2 parents 9fc88f6 + 331fd94 commit 97b1556
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,13 @@ private static Object[] getOpeningDayDurationTestParameters() {
createOpeningDay(true, LocalDate.parse("2020-04-09"), LONDON),
createOpeningDay(false, LocalDate.parse("2020-04-10"), LONDON));

LocalTime now = getLocalTime();

List<OpeningDay> invalid = Arrays.asList(
new OpeningDay(
singletonList(new OpeningHour(null, null)), LocalDate.parse("2020-04-08"), false, true, UTC
),
new OpeningDay(
singletonList(new OpeningHour(now, now.minusHours(1))), LocalDate.parse("2020-04-09"),
false, true, UTC)
new OpeningDay( // startTime after endTime
singletonList(new OpeningHour(LocalTime.of(6, 0), LocalTime.of(5, 0))),
LocalDate.parse("2020-04-09"), false, true, UTC)
);

List<OpeningDay> allDaysClosed = Arrays.asList(
Expand Down

0 comments on commit 97b1556

Please sign in to comment.