Home
last modified time | relevance | path

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

/external/mockito/src/test/java/org/mockitousage/examples/use/
DExampleTest.java64 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()
91 inOrder.verify(mockCalculator).countNumberOfRelatedArticles((Article) anyObject()); in shouldPersistRecalculatedArticle()
DArticleCalculator.java11 int countNumberOfRelatedArticles(Article article); in countNumberOfRelatedArticles() method
DArticleManager.java32 int numberOfRelatedArticles = calculator.countNumberOfRelatedArticles(article); in updateRelatedArticlesCounters()