@Test public void queryStatisticsDelegatesToDao() { service.getStatistics(); verify(dao).getQueueStatistics(); }
public Statistics getStatistics() { return statisticsDao.getQueueStatistics(); }
StatisticsService { public Statistics getStatistics() { return statisticsDao.getQueueStatistics(); } }
StatisticsService { public Statistics getStatistics() { return statisticsDao.getQueueStatistics(); } @Inject  StatisticsService(StatisticsDao statisticsDao); }
StatisticsService { public Statistics getStatistics() { return statisticsDao.getQueueStatistics(); } @Inject  StatisticsService(StatisticsDao statisticsDao); Statistics getStatistics(); Map<String, Map<String, WorkflowDefinitionStatistics>> getWorkflowDefinitionStatistics(String type,
      DateTime createdAfter, DateTime createdBefore, DateTime modifiedAfter, DateTime modifiedBefore); }
StatisticsService { public Statistics getStatistics() { return statisticsDao.getQueueStatistics(); } @Inject  StatisticsService(StatisticsDao statisticsDao); Statistics getStatistics(); Map<String, Map<String, WorkflowDefinitionStatistics>> getWorkflowDefinitionStatistics(String type,
      DateTime createdAfter, DateTime createdBefore, DateTime modifiedAfter, DateTime modifiedBefore);  }