assertTextPresent("userId and groupId cannot both be null", ae.getMessage());
}
}
public void testAddCandidateGroupUnexistingTask() {
Group group = identityService.newGroup("group");
identityService.saveGroup(group);
try {
taskService.addCandidateGroup("unexistingTaskId", group.getId());
fail("ProcessEngineException expected");
} catch (ProcessEngineException ae) {
assertTextPresent("Cannot find task with id unexistingTaskId", ae.getMessage());
}
identityService.deleteGroup(group.getId());
}