assertEquals(Time.construct(2006, 8, 16, 14), thisHour.getBeginCalendar());
assertEquals(Time.construct(2006, 8, 16, 14, 30), thisHour.getEndCalendar());
}
public void testOffset() {
Span span = new Span(_now, Calendar.SECOND, 1);
Span offsetSpan;
offsetSpan = new RepeaterHour().getOffset(span, 3, Pointer.PointerType.FUTURE);
assertEquals(Time.construct(2006, 8, 16, 17), offsetSpan.getBeginCalendar());
assertEquals(Time.construct(2006, 8, 16, 17, 0, 1), offsetSpan.getEndCalendar());
offsetSpan = new RepeaterHour().getOffset(span, 24, Pointer.PointerType.PAST);
assertEquals(Time.construct(2006, 8, 15, 14), offsetSpan.getBeginCalendar());
assertEquals(Time.construct(2006, 8, 15, 14, 0, 1), offsetSpan.getEndCalendar());
}