test: ldp fin matching free slot on empty day
This commit is contained in:
@@ -45,4 +45,13 @@ public class LocalDayPlanTest {
|
||||
|
||||
assertThat(plan.toString()).contains(day.zone().toString(), day.date().toString());
|
||||
}
|
||||
|
||||
@Test
|
||||
void ldpFindMatchingFreeSlotsOnEmptyDay() {
|
||||
LocalDayPlan plan = TestData.emptyWorkingDay();
|
||||
|
||||
List<TimeSlot> freeSlots = plan.findGapsFitting(Duration.ofHours(2));
|
||||
|
||||
assertThat(freeSlots.size()).isEqualTo(1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user