@Test public void listArticleVoters() throws Exception { assertEquals(0, service.listArticleVoters(voter, Collections.emptyList()).size()); service.voteArticle(UP, articleId, voter, EMPTY, 100); Article a2 = savedArticle(zoneInfo, savedAccountCitizen("author2"), "title vote"); service.voteArticle(UP, a2.getArticleId(), voter, EMPTY, 200); Set<FlakeId> actual = service.listArticleVoters(voter, asList(articleId, a2.getArticleId())) .stream() .map(ArticleVoter::getArticleId) .collect(Collectors.toSet()); assertEquals(Sets.newHashSet(articleId, a2.getArticleId()), actual); }
@Override public List<ArticleVoter> listArticleVoters(Authorization voter, List<FlakeId> articleIds) { return voteDao.listArticleVoters(voter.authenticatedId(), articleIds); }
VoteServiceImpl implements VoteService { @Override public List<ArticleVoter> listArticleVoters(Authorization voter, List<FlakeId> articleIds) { return voteDao.listArticleVoters(voter.authenticatedId(), articleIds); } }
VoteServiceImpl implements VoteService { @Override public List<ArticleVoter> listArticleVoters(Authorization voter, List<FlakeId> articleIds) { return voteDao.listArticleVoters(voter.authenticatedId(), articleIds); }  }
VoteServiceImpl implements VoteService { @Override public List<ArticleVoter> listArticleVoters(Authorization voter, List<FlakeId> articleIds) { return voteDao.listArticleVoters(voter.authenticatedId(), articleIds); }  @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<ArticleVoter> listArticleVoters(Authorization voter, List<FlakeId> articleIds) { return voteDao.listArticleVoters(voter.authenticatedId(), articleIds); }  @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);  }