builder.buildHourlyTask(Constants.REPORT_UTILIZATION, "cat", period);
}
@Test
public void testStateReportBuilder() throws Exception {
ReportServiceManager service = lookup(ReportServiceManager.class);
Date date = TimeHelper.getCurrentMonth();
long start = date.getTime();
long end = System.currentTimeMillis();
HistoryStateReportMerger merger = new HistoryStateReportMerger(new StateReport("cat"));
for (; start < end; start = start + TimeHelper.ONE_DAY) {
StateReport stateReport = service.queryStateReport("cat", new Date(start), new Date(start + TimeHelper.ONE_DAY));
stateReport.accept(merger);
}
StateReport report = merger.getStateReport();
new ClearDetailInfo().visitStateReport(report);