571572573574575576577578579580581
.manualStart(); // then HistoricTaskInstanceQuery query = historyService.createHistoricTaskInstanceQuery(); query.caseDefinitionKey(key); assertEquals(1, query.count()); assertEquals(1, query.list().size()); assertNotNull(query.singleResult());
588589590591592593594595596597598
} public void testQueryByInvalidCaseDefinitionKey() { HistoricTaskInstanceQuery query = historyService.createHistoricTaskInstanceQuery(); query.caseDefinitionKey("invalid"); assertEquals(0, query.count()); assertEquals(0, query.list().size()); assertNull(query.singleResult());
594595596597598599600601602603604
assertEquals(0, query.count()); assertEquals(0, query.list().size()); assertNull(query.singleResult()); query.caseDefinitionKey(null); assertEquals(0, query.count()); assertEquals(0, query.list().size()); assertNull(query.singleResult());