verifyQueryResults(query, 0);
}
public void testQueryByKey() {
// process one
ProcessDefinitionQuery query = repositoryService.createProcessDefinitionQuery().processDefinitionKey("one");
verifyQueryResults(query, 2);
// process two
query = repositoryService.createProcessDefinitionQuery().processDefinitionKey("two");
verifyQueryResults(query, 1);