@Test public void reenableCaseExecutionWithAuthenticatedTenant() { caseService.disableCaseExecution(caseExecutionId); identityService.setAuthentication("user", null, Arrays.asList(TENANT_ONE)); caseService.reenableCaseExecution(caseExecutionId); identityService.clearAuthentication(); CaseExecution caseExecution = getCaseExecution(); assertThat(caseExecution.isEnabled(), is(true)); }
@Test public void reenableCaseExecutionDisabledTenantCheck() { caseService.disableCaseExecution(caseExecutionId); identityService.setAuthentication("user", null, null); processEngineConfiguration.setTenantCheckEnabled(false); caseService.reenableCaseExecution(caseExecutionId); identityService.clearAuthentication(); CaseExecution caseExecution = getCaseExecution(); assertThat(caseExecution.isEnabled(), is(true)); }