Searched refs:mockDatabase (Results 1 – 1 of 1) sorted by relevance
25 @Mock private ArticleDatabase mockDatabase; field in ExampleTest36 verify(mockDatabase).updateNumberOfArticles("Guardian", 12); in managerCountsArticlesAndSavesThemInTheDatabase()37 verify(mockDatabase).updateNumberOfPolishArticles("Guardian", 5); in managerCountsArticlesAndSavesThemInTheDatabase()38 verify(mockDatabase).updateNumberOfEnglishArticles("Guardian", 7); in managerCountsArticlesAndSavesThemInTheDatabase()53 verify(mockDatabase).updateNumberOfArticles("Guardian", 0); in managerSavesArticlesInTheDatabase()54 verify(mockDatabase).updateNumberOfPolishArticles("Guardian", 0); in managerSavesArticlesInTheDatabase()55 verify(mockDatabase).updateNumberOfEnglishArticles("Guardian", 0); in managerSavesArticlesInTheDatabase()68 …when(mockDatabase.getArticlesFor("Guardian")).thenReturn(Arrays.asList(articleOne, articleTwo, art… in managerUpdatesNumberOfRelatedArticles()72 verify(mockDatabase).save(articleOne); in managerUpdatesNumberOfRelatedArticles()73 verify(mockDatabase).save(articleTwo); in managerUpdatesNumberOfRelatedArticles()[all …]