@Test public void calculateSummaryStats() { Map<String, Integer> stats = service.getSummaryStats(); assertThat(stats.get("approvalCount"), is(4)); assertThat(stats.get("userCount"), is(2)); assertThat(stats.get("clientCount"), is(3)); }
@Override public Map<String, Integer> getSummaryStats() { return summaryCache.get(); }
DefaultStatsService implements StatsService { @Override public Map<String, Integer> getSummaryStats() { return summaryCache.get(); } }
DefaultStatsService implements StatsService { @Override public Map<String, Integer> getSummaryStats() { return summaryCache.get(); }  }
DefaultStatsService implements StatsService { @Override public Map<String, Integer> getSummaryStats() { return summaryCache.get(); }  @Override Map<String, Integer> getSummaryStats(); @Override ClientStat getCountForClientId(String clientId); @Override void resetCache(); }
DefaultStatsService implements StatsService { @Override public Map<String, Integer> getSummaryStats() { return summaryCache.get(); }  @Override Map<String, Integer> getSummaryStats(); @Override ClientStat getCountForClientId(String clientId); @Override void resetCache();  }