public void testSpanTwoDaysOfOfficeHoursC() {
DateTime lastCalculated = new DateTime(2009, 6, 22, 7, 0, 0, 0);
DateTime now = new DateTime(2009, 6, 23, 19, 0, 0, 0);
Duration elapsedTime = calculator.calculateElapsedTime(lastCalculated, now, SLAWorkingHours.OFFICE_HOURS_9_TO_5_30);
Assert.assertEquals("PT17H", elapsedTime.toPeriod().toString());
}
public void testSpanTwoDaysOfOfficePlusWeekendHours() {
DateTime lastCalculated = new DateTime(2009, 6, 19, 7, 0, 0, 0);
DateTime now = new DateTime(2009, 6, 22, 19, 0, 0, 0);