verifyQueryResults(query, 2);
}
public void testQueryByInvalidVersion() {
CaseDefinitionQuery query = repositoryService.createCaseDefinitionQuery();
query
.caseDefinitionVersion(3);
verifyQueryResults(query, 0);
try {
query.caseDefinitionVersion(-1);
fail();
} catch (NotValidException e) {}
try {
query.caseDefinitionVersion(null);
fail();
} catch (NotValidException e) {}
}