631632633634635636637638639640641
.manualStart(); // then HistoricTaskInstanceQuery query = historyService.createHistoricTaskInstanceQuery(); query.caseDefinitionName(caseDefinitionName); assertEquals(1, query.count()); assertEquals(1, query.list().size()); assertNotNull(query.singleResult());
648649650651652653654655656657658
} public void testQueryByInvalidCaseDefinitionName() { HistoricTaskInstanceQuery query = historyService.createHistoricTaskInstanceQuery(); query.caseDefinitionName("invalid"); assertEquals(0, query.count()); assertEquals(0, query.list().size()); assertNull(query.singleResult());
654655656657658659660661662663664
assertEquals(0, query.count()); assertEquals(0, query.list().size()); assertNull(query.singleResult()); query.caseDefinitionName(null); assertEquals(0, query.count()); assertEquals(0, query.list().size()); assertNull(query.singleResult());