|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.assertj.core.api.Assertions
org.camunda.bpm.engine.test.assertions.bpmn.AbstractAssertions
org.camunda.bpm.engine.test.assertions.bpmn.BpmnAwareAssertions
org.camunda.bpm.engine.test.assertions.bpmn.BpmnAwareTests
org.camunda.bpm.engine.test.assertions.cmmn.CmmnAwareTests
public class CmmnAwareTests
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.*;
| Constructor Summary | |
|---|---|
CmmnAwareTests()
|
|
| Method Summary | |
|---|---|
static CaseDefinitionAssert |
assertThat(org.camunda.bpm.engine.repository.CaseDefinition actual)
Assert that... |
static CaseExecutionAssert |
assertThat(org.camunda.bpm.engine.runtime.CaseExecution actual)
Assert that... |
static CaseInstanceAssert |
assertThat(org.camunda.bpm.engine.runtime.CaseInstance actual)
Assert that... |
static org.camunda.bpm.engine.repository.CaseDefinitionQuery |
caseDefinitionQuery()
Helper method to easily create a new CaseDefinitionQuery. |
static org.camunda.bpm.engine.runtime.CaseExecution |
caseExecution(org.camunda.bpm.engine.runtime.CaseExecutionQuery caseExecutionQuery,
org.camunda.bpm.engine.runtime.CaseInstance caseInstance)
Helper method to find any CaseExecution in the context of a CaseInstance |
static org.camunda.bpm.engine.runtime.CaseExecution |
caseExecution(String activityId,
org.camunda.bpm.engine.runtime.CaseInstance caseInstance)
Helper method to find any CaseExecution in the context of a CaseInstance. |
static org.camunda.bpm.engine.runtime.CaseExecutionQuery |
caseExecutionQuery()
Helper method to easily create a new CaseExecutionQuery. |
static org.camunda.bpm.engine.runtime.CaseInstanceQuery |
caseInstanceQuery()
Helper method to easily create a new CaseInstanceQuery. |
static org.camunda.bpm.engine.CaseService |
caseService()
Helper method to easily access CaseService |
static void |
complete(org.camunda.bpm.engine.runtime.CaseExecution caseExecution)
Helper method to easily complete a CaseExecution. |
static void |
complete(org.camunda.bpm.engine.runtime.CaseExecution caseExecution,
Map<String,Object> variables)
Helper method to easily complete a caseExecution and pass some case variables. |
static void |
disable(org.camunda.bpm.engine.runtime.CaseExecution caseExecution)
Helper method to easily disable a case execution. |
static void |
manuallyStart(org.camunda.bpm.engine.runtime.CaseExecution caseExecution)
Helper method to manually start a case execution. |
static Map<String,Object> |
withVariables(String key,
Object value,
Object... furtherKeyValuePairs)
Helper method to easily construct a map of case variables |
| Methods inherited from class org.camunda.bpm.engine.test.assertions.bpmn.BpmnAwareTests |
|---|
authorizationService, calledProcessInstance, calledProcessInstance, calledProcessInstance, calledProcessInstance, calledProcessInstance, calledProcessInstance, claim, complete, complete, execute, executionQuery, 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 |
| Methods inherited from class org.camunda.bpm.engine.test.assertions.bpmn.BpmnAwareAssertions |
|---|
assertThat, assertThat, assertThat, assertThat |
| Methods inherited from class org.camunda.bpm.engine.test.assertions.bpmn.AbstractAssertions |
|---|
assertApi, init, processEngine, reset, supportsApi |
| Methods inherited from class org.assertj.core.api.Assertions |
|---|
allOf, allOf, anyOf, anyOf, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, atIndex, contentOf, contentOf, contentOf, doesNotHave, entry, extractProperty, extractProperty, fail, fail, failBecauseExceptionWasNotThrown, filter, filter, linesOf, linesOf, linesOf, not, offset, offset, registerCustomDateFormat, registerCustomDateFormat, setAllowExtractingPrivateFields, setRemoveAssertJRelatedElementsFromStackTrace, tuple, useDateFormat, useDateFormat, useDefaultDateFormats, useDefaultDateFormatsOnly, useIsoDateFormat, useIsoDateTimeFormat, useIsoDateTimeWithMsFormat, within, within, within |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CmmnAwareTests()
| Method Detail |
|---|
public static CaseInstanceAssert assertThat(org.camunda.bpm.engine.runtime.CaseInstance actual)
actual - CaseInstance under test
public static CaseExecutionAssert assertThat(org.camunda.bpm.engine.runtime.CaseExecution actual)
actual - CaseExecution under test
public static CaseDefinitionAssert assertThat(org.camunda.bpm.engine.repository.CaseDefinition actual)
actual - ProcessDefinition under test
public static org.camunda.bpm.engine.CaseService caseService()
CaseServicepublic static org.camunda.bpm.engine.runtime.CaseInstanceQuery caseInstanceQuery()
public static org.camunda.bpm.engine.runtime.CaseExecutionQuery caseExecutionQuery()
public static org.camunda.bpm.engine.repository.CaseDefinitionQuery caseDefinitionQuery()
public static void complete(org.camunda.bpm.engine.runtime.CaseExecution caseExecution)
caseExecution - the CaseExecution to completepublic static void disable(org.camunda.bpm.engine.runtime.CaseExecution caseExecution)
caseExecution - the case execution to completepublic static void manuallyStart(org.camunda.bpm.engine.runtime.CaseExecution caseExecution)
caseExecution - the case execution to start
public static org.camunda.bpm.engine.runtime.CaseExecution caseExecution(String activityId,
org.camunda.bpm.engine.runtime.CaseInstance caseInstance)
CaseExecution in the context of a CaseInstance.
activityId - activity to findcaseInstance - CaseInstance to search in
public static org.camunda.bpm.engine.runtime.CaseExecution caseExecution(org.camunda.bpm.engine.runtime.CaseExecutionQuery caseExecutionQuery,
org.camunda.bpm.engine.runtime.CaseInstance caseInstance)
CaseExecution in the context of a CaseInstance
caseExecutionQuery - query for narrowing down on the CaseExecution to findcaseInstance - CaseInstance to search in
public static void complete(org.camunda.bpm.engine.runtime.CaseExecution caseExecution,
Map<String,Object> variables)
caseExecution - CaseExecution to be completedvariables - Case variables to be passed to the
case instance when completing the caseExecution. For
setting those variables, you can use
withVariables(String, Object, Object...)
public static Map<String,Object> withVariables(String key,
Object value,
Object... furtherKeyValuePairs)
key - (obligatory) key of first case variablevalue - (obligatory) value of first case variablefurtherKeyValuePairs - (optional) key/value pairs for further
case variables
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||