@Test public void listScheduleEventsForAnExistingContributor() { String contributorId = "2"; Set<ScheduleEvent> events = scheduleEventDao.listScheduleEventsByContributorId(contributorId); assertThat(events.size(), is(1)); ScheduleEvent theEvent = events.iterator().next(); assertThat(theEvent, isEqualTo(theScheduledEvent())); }
@Test public void listScheduleEventsForAnUnexistingContributor() { String contributorId = "100"; Set<ScheduleEvent> events = scheduleEventDao.listScheduleEventsByContributorId(contributorId); assertThat(events.isEmpty(), is(true)); }