@Test public void testForCorrectSizeOfAnnounces() { DateTime now = new DateTime(); now = now.withTime(9, 0, 0, 0); List<String> announces = scheduleAnnouncer.getHourlyAnnounces(now); assertEquals(3, announces.size()); announces = null; now = now.withTime(10, 0, 0, 0); announces = scheduleAnnouncer.getHourlyAnnounces(now); assertEquals(2, announces.size()); announces = null; now = now.withTime(11, 0, 0, 0); announces = scheduleAnnouncer.getHourlyAnnounces(now); assertEquals(1, announces.size()); announces = null; now = now.withTime(12, 0, 0, 0); announces = scheduleAnnouncer.getHourlyAnnounces(now); assertEquals(1, announces.size()); announces = null; now = now.withTime(15, 0, 0, 0); announces = scheduleAnnouncer.getHourlyAnnounces(now); assertEquals(2, announces.size()); announces = null; now = now.withTime(19, 0, 0, 0); announces = scheduleAnnouncer.getHourlyAnnounces(now); assertEquals(0, announces.size()); }
public List<String> getHourlyAnnounces() { DateTime now = new DateTime(); return getHourlyAnnounces(now.withTime(now.getHourOfDay(), 0, 0, 0)); }
ScheduleAnnouncer { public List<String> getHourlyAnnounces() { DateTime now = new DateTime(); return getHourlyAnnounces(now.withTime(now.getHourOfDay(), 0, 0, 0)); } }
ScheduleAnnouncer { public List<String> getHourlyAnnounces() { DateTime now = new DateTime(); return getHourlyAnnounces(now.withTime(now.getHourOfDay(), 0, 0, 0)); } ScheduleAnnouncer(GoogleCalendar calendar);  ScheduleAnnouncer(Wand wand, GoogleCalendar calendar); }
ScheduleAnnouncer { public List<String> getHourlyAnnounces() { DateTime now = new DateTime(); return getHourlyAnnounces(now.withTime(now.getHourOfDay(), 0, 0, 0)); } ScheduleAnnouncer(GoogleCalendar calendar);  ScheduleAnnouncer(Wand wand, GoogleCalendar calendar); List<String> getHourlyAnnounces(); List<String> getHourlyAnnounces(DateTime now); String getPeriodInStringFormat(Period period); static void main(String[] args); }
ScheduleAnnouncer { public List<String> getHourlyAnnounces() { DateTime now = new DateTime(); return getHourlyAnnounces(now.withTime(now.getHourOfDay(), 0, 0, 0)); } ScheduleAnnouncer(GoogleCalendar calendar);  ScheduleAnnouncer(Wand wand, GoogleCalendar calendar); List<String> getHourlyAnnounces(); List<String> getHourlyAnnounces(DateTime now); String getPeriodInStringFormat(Period period); static void main(String[] args); static final String OFFICEHOUR_NOW; static final String OFFICEHOUR_ETA; static final String EVENT_NOW; static final String EVENT_ETA; }