assertThat(hours, equalTo(EffortDuration.zero()));
}
@Test
public void testCapacityOnDerivedBasicCalendarWithException() {
BaseCalendar calendar = createBasicCalendar().newDerivedCalendar();
CalendarException day = CalendarException.create(WEDNESDAY_LOCAL_DATE,
hours(4), createCalendarExceptionType());
calendar.addExceptionDay(day);
EffortDuration mondayHours = calendar
.getCapacityOn(wholeDay(MONDAY_LOCAL_DATE));
assertThat(mondayHours, equalTo(hours(8)));
EffortDuration wednesdayHours = calendar
.getCapacityOn(wholeDay(WEDNESDAY_LOCAL_DATE));
assertThat(wednesdayHours, equalTo(hours(4)));
EffortDuration sundayHours = calendar
.getCapacityOn(wholeDay(SUNDAY_LOCAL_DATE));
assertThat(sundayHours, equalTo(zero()));
}