assertEquals(2, query.list().size());
assertEquals(2, query.count());
}
public void testQueryByInvalidRootCauseIncidentId() {
HistoricIncidentQuery query = historyService.createHistoricIncidentQuery();
assertEquals(0, query.rootCauseIncidentId("invalid").list().size());
assertEquals(0, query.rootCauseIncidentId("invalid").count());
try {
query.rootCauseIncidentId(null);
fail("It was possible to set a null value as rootCauseIncidentId.");
} catch (ProcessEngineException e) { }
}