@Test public void findAllReturnsEmptyListIfNoTrophies() { reset(trophyDAO); when(trophyDAO.retrieveAll()).thenReturn(Collections.<Trophy>emptyList()); underTest.refreshTrophies(); assertEquals(Collections.EMPTY_LIST, underTest.findAll()); }
@Test public void findAllReadsTheInitialisedTrophies() { assertThat(underTest.findAll(), allOf(hasItem(TROPHY1), hasItem(TROPHY2), hasItem(TROPHY3))); }