diff --git a/src/test/java/org/folio/circulation/domain/OverduePeriodCalculatorServiceTest.java b/src/test/java/org/folio/circulation/domain/OverduePeriodCalculatorServiceTest.java index f63e260b99..ddd82a1cc6 100644 --- a/src/test/java/org/folio/circulation/domain/OverduePeriodCalculatorServiceTest.java +++ b/src/test/java/org/folio/circulation/domain/OverduePeriodCalculatorServiceTest.java @@ -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 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 allDaysClosed = Arrays.asList(