Home
last modified time | relevance | path

Searched refs:mockCalculator (Results 1 – 1 of 1) sorted by relevance

/external/mockito/src/test/java/org/mockitousage/examples/use/
DExampleTest.java24 @Mock private ArticleCalculator mockCalculator; field in ExampleTest
31 when(mockCalculator.countArticles("Guardian")).thenReturn(12); in managerCountsArticlesAndSavesThemInTheDatabase()
32 when(mockCalculator.countArticlesInPolish(anyString())).thenReturn(5); in managerCountsArticlesAndSavesThemInTheDatabase()
45 verify(mockCalculator).countArticles("Guardian"); in managerCountsArticlesUsingCalculator()
46 verify(mockCalculator).countArticlesInPolish("Guardian"); in managerCountsArticlesUsingCalculator()
64 when(mockCalculator.countNumberOfRelatedArticles(articleOne)).thenReturn(1); in managerUpdatesNumberOfRelatedArticles()
65 when(mockCalculator.countNumberOfRelatedArticles(articleTwo)).thenReturn(12); in managerUpdatesNumberOfRelatedArticles()
66 when(mockCalculator.countNumberOfRelatedArticles(articleThree)).thenReturn(0); in managerUpdatesNumberOfRelatedArticles()
82 when(mockCalculator.countNumberOfRelatedArticles(articleOne)).thenReturn(1); in shouldPersistRecalculatedArticle()
83 when(mockCalculator.countNumberOfRelatedArticles(articleTwo)).thenReturn(12); in shouldPersistRecalculatedArticle()
[all …]