@Test public void listUpVotedArticles() throws Exception { assertEquals(0, service.listUpVotedArticles(voter, null).size()); savedArticle(zoneInfo, savedAccountCitizen("other2"), "not voted"); Article a3 = savedArticle(zoneInfo, savedAccountCitizen("other3"), "title 3"); service.voteArticle(UP, a3.getArticleId(), voter, EMPTY, 100); service.voteArticle(UP, articleId, voter, EMPTY, 100); assertEquals(asList(a3, article), service.listUpVotedArticles(voter, null)); assertEquals(asList(article), service.listUpVotedArticles(voter, a3.getArticleId())); articleDao.markAsDeleted(article); assertEquals("up voted article should include deleted one", asList(a3, article), service.listUpVotedArticles(voter, null)); }
@Override public List<Article> listUpVotedArticles(Authorization voter, @Nullable FlakeId startArticleId) { return voteDao.listUpVotedArticles(voter.authenticatedId(), startArticleId, ArticleServiceImpl.PAGE_SIZE); }
VoteServiceImpl implements VoteService { @Override public List<Article> listUpVotedArticles(Authorization voter, @Nullable FlakeId startArticleId) { return voteDao.listUpVotedArticles(voter.authenticatedId(), startArticleId, ArticleServiceImpl.PAGE_SIZE); } }
VoteServiceImpl implements VoteService { @Override public List<Article> listUpVotedArticles(Authorization voter, @Nullable FlakeId startArticleId) { return voteDao.listUpVotedArticles(voter.authenticatedId(), startArticleId, ArticleServiceImpl.PAGE_SIZE); }  }
VoteServiceImpl implements VoteService { @Override public List<Article> listUpVotedArticles(Authorization voter, @Nullable FlakeId startArticleId) { return voteDao.listUpVotedArticles(voter.authenticatedId(), startArticleId, ArticleServiceImpl.PAGE_SIZE); }  @Override List<DebateVoter> listDebateVoters(Authorization voter, FlakeId articleId); @Override void voteArticle(VoteState newState,
      FlakeId articleId,
      Authorization authorization,
      VoteState previousState,
      long previousCount); @Override void voteDebate(VoteState newState,
      FlakeId debateId,
      Authorization voter,
      VoteState previousState,
      long previousCount); @Override List<ArticleVoter> listArticleVoters(Authorization voter, List<FlakeId> articleIds); @Override List<DebateVoter> listDebateVotersByIds(Authorization voter, List<FlakeId> debateIds); @Override List<Article> listUpVotedArticles(Authorization voter, @Nullable FlakeId startArticleId); }
VoteServiceImpl implements VoteService { @Override public List<Article> listUpVotedArticles(Authorization voter, @Nullable FlakeId startArticleId) { return voteDao.listUpVotedArticles(voter.authenticatedId(), startArticleId, ArticleServiceImpl.PAGE_SIZE); }  @Override List<DebateVoter> listDebateVoters(Authorization voter, FlakeId articleId); @Override void voteArticle(VoteState newState,
      FlakeId articleId,
      Authorization authorization,
      VoteState previousState,
      long previousCount); @Override void voteDebate(VoteState newState,
      FlakeId debateId,
      Authorization voter,
      VoteState previousState,
      long previousCount); @Override List<ArticleVoter> listArticleVoters(Authorization voter, List<FlakeId> articleIds); @Override List<DebateVoter> listDebateVotersByIds(Authorization voter, List<FlakeId> debateIds); @Override List<Article> listUpVotedArticles(Authorization voter, @Nullable FlakeId startArticleId);  }