use of pro.taskana.impl.report.impl.TaskQueryItem in project taskana by Taskana.
the class ProvideTaskStatusReportAccTest method testCompleteTaskStatusReportWithDomainFilter.
@Test
public void testCompleteTaskStatusReportWithDomainFilter() {
// given
TaskMonitorService taskMonitorService = taskanaEngine.getTaskMonitorService();
// when
TaskStatusReport report = taskMonitorService.getTaskStatusReport(asList("DOMAIN_C", "DOMAIN_A"));
// then
if (LOGGER.isDebugEnabled()) {
LOGGER.debug(reportToString(report));
}
assertNotNull(report);
assertEquals(2, report.rowSize());
ReportRow<TaskQueryItem> row1 = report.getRow("DOMAIN_A");
assertArrayEquals(new int[] { 22, 4, 0 }, row1.getCells());
assertEquals(26, row1.getTotalValue());
ReportRow<TaskQueryItem> row2 = report.getRow("DOMAIN_C");
assertArrayEquals(new int[] { 10, 2, 0 }, row2.getCells());
assertEquals(12, row2.getTotalValue());
ReportRow<TaskQueryItem> sumRow = report.getSumRow();
assertArrayEquals(new int[] { 32, 6, 0 }, sumRow.getCells());
assertEquals(38, sumRow.getTotalValue());
}
Aggregations