} catch (NotValidException e) {}
}
public void testQueryByCaseInstanceBusinessKeyAndCaseDefinitionKey() {
CaseExecutionQuery query = caseService.createCaseExecutionQuery();
query
.caseInstanceBusinessKey("0")
.caseDefinitionKey(CASE_DEFINITION_KEY);
verifyQueryResults(query, 2);
query
.caseInstanceBusinessKey("1")
.caseDefinitionKey(CASE_DEFINITION_KEY);
verifyQueryResults(query, 2);
query
.caseInstanceBusinessKey("2")
.caseDefinitionKey(CASE_DEFINITION_KEY);
verifyQueryResults(query, 2);
query
.caseInstanceBusinessKey("3")
.caseDefinitionKey(CASE_DEFINITION_KEY);
verifyQueryResults(query, 2);
query
.caseInstanceBusinessKey("1")
.caseDefinitionKey(CASE_DEFINITION_KEY_2);
verifyQueryResults(query, 3);