@Test public void calculateByClientId() { Map<Long, Integer> stats = service.getByClientId(); assertThat(stats.get(1L), is(2)); assertThat(stats.get(2L), is(1)); assertThat(stats.get(3L), is(1)); assertThat(stats.get(4L), is(0)); }
@Override public Map<Long, Integer> getByClientId() { return byClientIdCache.get(); }
DefaultStatsService implements StatsService { @Override public Map<Long, Integer> getByClientId() { return byClientIdCache.get(); } }
DefaultStatsService implements StatsService { @Override public Map<Long, Integer> getByClientId() { return byClientIdCache.get(); }  }
DefaultStatsService implements StatsService { @Override public Map<Long, Integer> getByClientId() { return byClientIdCache.get(); }  @Override Map<String, Integer> getSummaryStats(); @Override Map<Long, Integer> getByClientId(); @Override Integer getCountForClientId(Long id); @Override void resetCache(); }
DefaultStatsService implements StatsService { @Override public Map<Long, Integer> getByClientId() { return byClientIdCache.get(); }  @Override Map<String, Integer> getSummaryStats(); @Override Map<Long, Integer> getByClientId(); @Override Integer getCountForClientId(Long id); @Override void resetCache();  }