@Test public void listDebateVotersByIds() throws Exception { assertEquals(0, service.listDebateVotersByIds(voter, Collections.emptyList()).size()); service.voteDebate(UP, debateId, voter, EMPTY, 20); Article a2 = savedArticle(zoneInfo, author, "another article"); Debate d2 = savedDebate(a2, "foo", null); service.voteDebate(UP, d2.getDebateId(), voter, EMPTY, 20); List<DebateVoter> debateVoters = service.listDebateVotersByIds(voter, asList(debateId, d2.getDebateId())); assertEquals(2, debateVoters.size()); assertEquals(debateId, debateVoters.get(0).getDebateId()); assertEquals(d2.getDebateId(), debateVoters.get(1).getDebateId()); }
@Override public List<DebateVoter> listDebateVotersByIds(Authorization voter, List<FlakeId> debateIds) { return voteDao.listDebateVotersByIds(voter.authenticatedId(), debateIds); }
VoteServiceImpl implements VoteService { @Override public List<DebateVoter> listDebateVotersByIds(Authorization voter, List<FlakeId> debateIds) { return voteDao.listDebateVotersByIds(voter.authenticatedId(), debateIds); } }
VoteServiceImpl implements VoteService { @Override public List<DebateVoter> listDebateVotersByIds(Authorization voter, List<FlakeId> debateIds) { return voteDao.listDebateVotersByIds(voter.authenticatedId(), debateIds); }  }
VoteServiceImpl implements VoteService { @Override public List<DebateVoter> listDebateVotersByIds(Authorization voter, List<FlakeId> debateIds) { return voteDao.listDebateVotersByIds(voter.authenticatedId(), debateIds); }  @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<DebateVoter> listDebateVotersByIds(Authorization voter, List<FlakeId> debateIds) { return voteDao.listDebateVotersByIds(voter.authenticatedId(), debateIds); }  @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);  }