Searched refs:countNumberOfRelatedArticles (Results 1 – 3 of 3) sorted by relevance
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()91 inOrder.verify(mockCalculator).countNumberOfRelatedArticles((Article) anyObject()); in shouldPersistRecalculatedArticle()
11 int countNumberOfRelatedArticles(Article article); in countNumberOfRelatedArticles() method
32 int numberOfRelatedArticles = calculator.countNumberOfRelatedArticles(article); in updateRelatedArticlesCounters()