use of org.jbpm.casemgmt.api.model.instance.CaseInstance in project jbpm by kiegroup.
the class AbstractCaseServicesBaseTest method assertCaseInstanceActive.
public void assertCaseInstanceActive(String caseId) {
try {
CaseInstance caseInstance = caseService.getCaseInstance(caseId);
assertThat(caseInstance).isNotNull();
assertThat(caseInstance.getStatus()).isEqualTo(CaseStatus.OPEN.getId());
} catch (CaseNotFoundException ex) {
fail("Case instance is not active");
}
}
use of org.jbpm.casemgmt.api.model.instance.CaseInstance in project jbpm by kiegroup.
the class AbstractCaseServicesBaseTest method assertCaseInstance.
protected void assertCaseInstance(String caseId, String name) {
CaseInstance cInstance = caseService.getCaseInstance(caseId, true, false, false, false);
assertThat(cInstance).isNotNull();
assertThat(cInstance.getCaseId()).isEqualTo(caseId);
assertThat(cInstance.getCaseFile()).isNotNull();
assertThat(cInstance.getCaseFile().getData("name")).isEqualTo(name);
}
Aggregations