Class CmmnAwareTests
java.lang.Object
org.camunda.bpm.engine.test.assertions.bpmn.AbstractAssertions
org.camunda.bpm.engine.test.assertions.bpmn.BpmnAwareTests
org.camunda.bpm.engine.test.assertions.cmmn.CmmnAwareTests
- Direct Known Subclasses:
ProcessEngineTests
Convenience class to access camunda *BPMN* and *CMMN*
related Assertions PLUS helper methods. Use it with a static import:
import static org.camunda.bpm.engine.test.assertions.cmmn.CmmnAwareTests.*;
-
Field Summary
Fields inherited from class org.camunda.bpm.engine.test.assertions.bpmn.BpmnAwareTests
DEFAULT_LOCK_DURATION_EXTERNAL_TASK, DEFAULT_WORKER_EXTERNAL_TASK
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CaseDefinitionAssert
assertThat
(CaseDefinition actual) Assert that...static CaseExecutionAssert
assertThat
(CaseExecution actual) Assert that...static CaseInstanceAssert
assertThat
(CaseInstance actual) Assert that...static CaseDefinitionQuery
Helper method to easily create a new CaseDefinitionQuery.static CaseExecution
caseExecution
(String activityId, CaseInstance caseInstance) Helper method to find anyCaseExecution
in the context of a CaseInstance.static CaseExecution
caseExecution
(CaseExecutionQuery caseExecutionQuery, CaseInstance caseInstance) Helper method to find anyCaseExecution
in the context of a CaseInstancestatic CaseExecutionQuery
Helper method to easily create a new CaseExecutionQuery.static CaseInstanceQuery
Helper method to easily create a new CaseInstanceQuery.static CaseService
Helper method to easily access CaseServicestatic void
complete
(CaseExecution caseExecution) Helper method to easily complete a CaseExecution.static void
complete
(CaseExecution caseExecution, Map<String, Object> variables) Helper method to easily complete a caseExecution and pass some case variables.static void
disable
(CaseExecution caseExecution) Helper method to easily disable a case execution.static void
manuallyStart
(CaseExecution caseExecution) Helper method to manually start a case execution.Methods inherited from class org.camunda.bpm.engine.test.assertions.bpmn.BpmnAwareTests
assertThat, assertThat, assertThat, assertThat, assertThat, authorizationService, calledProcessInstance, calledProcessInstance, calledProcessInstance, calledProcessInstance, calledProcessInstance, calledProcessInstance, claim, complete, complete, complete, complete, complete, complete, complete, complete, decisionService, execute, executionQuery, externalTask, externalTask, externalTask, externalTask, externalTask, externalTask, externalTaskQuery, externalTaskService, fetchAndLock, findId, formService, historyService, identityService, job, job, job, job, job, job, jobQuery, managementService, processDefinition, processDefinition, processDefinition, processDefinition, processDefinitionQuery, processInstanceQuery, repositoryService, runtimeService, task, task, task, task, task, task, taskQuery, taskService, unclaim, withVariables
Methods inherited from class org.camunda.bpm.engine.test.assertions.bpmn.AbstractAssertions
init, processEngine, reset
-
Constructor Details
-
CmmnAwareTests
public CmmnAwareTests()
-
-
Method Details
-
assertThat
Assert that... the given CaseInstance meets your expectations.- Parameters:
actual
- CaseInstance under test- Returns:
- Assert object offering CaseInstance specific assertions.
-
assertThat
Assert that... the given CaseExecution meets your expectations.- Parameters:
actual
- CaseExecution under test- Returns:
- Assert object offering CaseExecution specific assertions.
-
assertThat
Assert that... the given CaseDefinition meets your expectations.- Parameters:
actual
- ProcessDefinition under test- Returns:
- Assert object offering ProcessDefinition specific assertions.
-
caseService
Helper method to easily access CaseService- Returns:
- CaseService of process engine bound to this testing thread
- See Also:
-
caseInstanceQuery
Helper method to easily create a new CaseInstanceQuery.- Returns:
- new CaseInstanceQuery for process engine bound to this testing thread
-
caseExecutionQuery
Helper method to easily create a new CaseExecutionQuery.- Returns:
- new CaseExecutionQuery for process engine bound to this testing thread
-
caseDefinitionQuery
Helper method to easily create a new CaseDefinitionQuery.- Returns:
- new CaseExecutionQuery for process engine bound to this testing thread
-
complete
Helper method to easily complete a CaseExecution.- Parameters:
caseExecution
- the CaseExecution to complete
-
disable
Helper method to easily disable a case execution.- Parameters:
caseExecution
- the case execution to complete
-
manuallyStart
Helper method to manually start a case execution.- Parameters:
caseExecution
- the case execution to start
-
caseExecution
Helper method to find anyCaseExecution
in the context of a CaseInstance.- Parameters:
activityId
- activity to findcaseInstance
- CaseInstance to search in- Returns:
- CaseExecution or null
-
caseExecution
public static CaseExecution caseExecution(CaseExecutionQuery caseExecutionQuery, CaseInstance caseInstance) Helper method to find anyCaseExecution
in the context of a CaseInstance- Parameters:
caseExecutionQuery
- query for narrowing down on the CaseExecution to findcaseInstance
- CaseInstance to search in- Returns:
- CaseExecution or null
-
complete
Helper method to easily complete a caseExecution and pass some case variables.- Parameters:
caseExecution
- CaseExecution to be completedvariables
- Case variables to be passed to the case instance when completing the caseExecution. For setting those variables, you can useBpmnAwareTests.withVariables(String, Object, Object...)
-