Class CaseInstanceAssert
java.lang.Object
org.assertj.core.api.AbstractAssert<S,A>
 
org.camunda.bpm.engine.test.assertions.bpmn.AbstractProcessAssert<S,A>
 
org.camunda.bpm.engine.test.assertions.cmmn.AbstractCaseAssert<CaseInstanceAssert,CaseInstance>
 
org.camunda.bpm.engine.test.assertions.cmmn.CaseInstanceAssert
- All Implemented Interfaces:
- org.assertj.core.api.Assert<CaseInstanceAssert,,- CaseInstance> - org.assertj.core.api.Descriptable<CaseInstanceAssert>,- org.assertj.core.api.ExtensionPoints<CaseInstanceAssert,- CaseInstance> 
- 
Field SummaryFields inherited from class org.camunda.bpm.engine.test.assertions.bpmn.AbstractProcessAssertengineFields inherited from class org.assertj.core.api.AbstractAssertactual, info, myself, objects, throwUnsupportedExceptionOnEquals
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedCaseInstanceAssert(ProcessEngine engine, CaseInstance actual) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected static CaseInstanceAssertassertThat(ProcessEngine engine, CaseInstance actual) Enter into a chainedCaseTaskAssertinspecting the one and mostly one 'caseTask' currently available in the context of the actual caseExecution under test of this AbstractCaseAssert.caseTask(CaseExecutionQuery query) Enter into a chainedCaseTaskAssertinspecting the one and mostly one 'caseTask' currently available in the context of the actual caseExecution under test of this AbstractCaseAssert.protected intEnter into a chainedHumanTaskAssertinspecting the one and mostly one 'humanTask' currently available in the context of the actual caseExecution under test of this AbstractCaseAssert.humanTask(CaseExecutionQuery query) Enter into a chainedHumanTaskAssertinspecting the one and mostly one 'humanTask' currently available in the context of the actual caseExecution under test of this AbstractCaseAssert.isActive()Verifies the expectation that theCaseExecutionis 'active'.isClosed()Verifies the expectation that theCaseExecutionis 'closed'.Verifies the expectation that theCaseExecutionis 'completed'.Verifies the expectation that theCaseExecutionis 'terminated'.Enter into a chainedMilestoneAssertinspecting the one and mostly one 'milestone' currently available in the context of the actual caseExecution under test of this AbstractCaseAssert.milestone(CaseExecutionQuery query) Enter into a chainedMilestoneAssertinspecting the one and mostly one 'milestone' currently available in the context of the actual caseExecution under test of this AbstractCaseAssert.processTask(String activityId) Enter into a chainedProcessTaskAssertinspecting the one and mostly one 'processTask' currently available in the context of the actual caseExecution under test of this AbstractCaseAssert.processTask(CaseExecutionQuery query) Enter into a chainedProcessTaskAssertinspecting the one and mostly one 'processTask' currently available in the context of the actual caseExecution under test of this AbstractCaseAssert.Enter into a chainedStageAssertinspecting the one and mostly one 'stage' currently available in the context of the actual caseExecution under test of this AbstractCaseAssert.stage(CaseExecutionQuery query) Enter into a chainedStageAssertinspecting the one and mostly one 'stage' currently available in the context of the actual caseExecution under test of this AbstractCaseAssert.Methods inherited from class org.camunda.bpm.engine.test.assertions.cmmn.AbstractCaseAssertcaseExecution, caseExecutionQuery, descendantCaseExecution, getActual, getCurrent, hasVars, historicCaseActivityInstanceQuery, isAvailable, isCaseInstance, isCaseTask, isDisabled, isEnabled, isHumanTask, isMilestone, isProcessTask, isStage, toString, variables, varsMethods inherited from class org.camunda.bpm.engine.test.assertions.bpmn.AbstractProcessAssertcaseDefinitionQuery, caseInstanceQuery, caseService, executionQuery, externalTaskQuery, externalTaskService, formService, getExistingCurrent, getLastAssert, historicActivityInstanceQuery, historicProcessInstanceQuery, historicVariableInstanceQuery, historyService, jobQuery, managementService, processDefinitionQuery, processInstanceQuery, repositoryService, resetLastAsserts, runtimeService, taskQuery, taskServiceMethods inherited from class org.assertj.core.api.AbstractAssertareEqual, asInstanceOf, asList, assertionError, asString, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, doesNotHaveSameHashCodeAs, doesNotHaveToString, equals, extracting, extracting, failure, failureWithActualExpected, failWithActualExpectedAndMessage, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, inBinary, inHexadecimal, is, isElementOfCustomAssert, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isInstanceOfSatisfying, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, matches, matches, newListAssertInstance, overridingErrorMessage, overridingErrorMessage, satisfies, satisfies, satisfies, satisfiesAnyOf, satisfiesAnyOf, satisfiesAnyOfForProxy, satisfiesForProxy, setCustomRepresentation, setDescriptionConsumer, setPrintAssertionsDescription, throwAssertionError, usingComparator, usingComparator, usingDefaultComparator, usingRecursiveAssertion, usingRecursiveAssertion, usingRecursiveComparison, usingRecursiveComparison, withFailMessage, withFailMessage, withRepresentation, withThreadDumpOnErrorMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.assertj.core.api.Descriptableas, as, as, describedAs
- 
Constructor Details- 
CaseInstanceAssert
 
- 
- 
Method Details- 
assertThat
- 
isActiveDescription copied from class:AbstractCaseAssertVerifies the expectation that theCaseExecutionis 'active'. Change visibility to public for those inheriting classes for whose underlying objects under test this status makes sense- Overrides:
- isActivein class- AbstractCaseAssert<CaseInstanceAssert,- CaseInstance> 
- Returns:
- this
 
- 
isCompletedDescription copied from class:AbstractCaseAssertVerifies the expectation that theCaseExecutionis 'completed'. Change visibility to public for those inheriting classes for whose underlying objects under test this status makes sense- Overrides:
- isCompletedin class- AbstractCaseAssert<CaseInstanceAssert,- CaseInstance> 
- Returns:
- this
 
- 
isClosedDescription copied from class:AbstractCaseAssertVerifies the expectation that theCaseExecutionis 'closed'. Change visibility to public for those inheriting classes for whose underlying objects under test this status makes sense- Overrides:
- isClosedin class- AbstractCaseAssert<CaseInstanceAssert,- CaseInstance> 
- Returns:
- this
 
- 
isTerminatedDescription copied from class:AbstractCaseAssertVerifies the expectation that theCaseExecutionis 'terminated'. Change visibility to public for those inheriting classes for whose underlying objects under test this status makes sense- Overrides:
- isTerminatedin class- AbstractCaseAssert<CaseInstanceAssert,- CaseInstance> 
- Returns:
- this
 
- 
humanTaskDescription copied from class:AbstractCaseAssertEnter into a chainedHumanTaskAssertinspecting the one and mostly one 'humanTask' currently available in the context of the actual caseExecution under test of this AbstractCaseAssert. The query is automatically narrowed down to the actual caseExecution under test of this assertion as well as to the type 'humanTask'. Change visibility to public for those inheriting classes for whose underlying objects under test this method makes sense- Overrides:
- humanTaskin class- AbstractCaseAssert<CaseInstanceAssert,- CaseInstance> 
- Parameters:
- query- CaseExecutionQuery further narrowing down the search for caseExecutions. The query is automatically narrowed down to the actual 'parent' CaseExecution under test of this assertion as well as to the type 'humanTask'.
- Returns:
- the only CaseExecution resulting from the given search. A 'null' CaseExecution in case no such CaseExecution is available.
 
- 
humanTaskDescription copied from class:AbstractCaseAssertEnter into a chainedHumanTaskAssertinspecting the one and mostly one 'humanTask' currently available in the context of the actual caseExecution under test of this AbstractCaseAssert. The query is automatically narrowed down to the actual caseExecution under test of this assertion as well as to the type 'humanTask'. Change visibility to public for those inheriting classes for whose underlying objects under test this method makes sense- Overrides:
- humanTaskin class- AbstractCaseAssert<CaseInstanceAssert,- CaseInstance> 
- Parameters:
- activityId- activity if further narrowing down the search for caseExecutions. The query is automatically narrowed down to the actual 'parent' CaseExecution under test of this assertion as well as to the type 'humanTask'.
- Returns:
- the only CaseExecution with the given activitiy id. A 'null' CaseExecution in case no such CaseExecution is available.
 
- 
caseTaskDescription copied from class:AbstractCaseAssertEnter into a chainedCaseTaskAssertinspecting the one and mostly one 'caseTask' currently available in the context of the actual caseExecution under test of this AbstractCaseAssert. The query is automatically narrowed down to the actual caseExecution under test of this assertion as well as to the type 'caseTask'. Change visibility to public for those inheriting classes for whose underlying objects under test this method makes sense- Overrides:
- caseTaskin class- AbstractCaseAssert<CaseInstanceAssert,- CaseInstance> 
- Parameters:
- query- CaseExecutionQuery further narrowing down the search for caseExecutions. The query is automatically narrowed down to the actual 'parent' CaseExecution under test of this assertion as well as to the type 'caseTask'.
- Returns:
- the only CaseExecution resulting from the given search. A 'null' CaseExecution in case no such CaseExecution is available.
 
- 
caseTaskDescription copied from class:AbstractCaseAssertEnter into a chainedCaseTaskAssertinspecting the one and mostly one 'caseTask' currently available in the context of the actual caseExecution under test of this AbstractCaseAssert. The query is automatically narrowed down to the actual caseExecution under test of this assertion as well as to the type 'caseTask'. Change visibility to public for those inheriting classes for whose underlying objects under test this method makes sense- Overrides:
- caseTaskin class- AbstractCaseAssert<CaseInstanceAssert,- CaseInstance> 
- Parameters:
- activityId- activity if further narrowing down the search for caseExecutions. The query is automatically narrowed down to the actual 'parent' CaseExecution under test of this assertion as well as to the type 'caseTask'.
- Returns:
- the only CaseExecution with the given activitiy id. A 'null' CaseExecution in case no such CaseExecution is available.
 
- 
processTaskDescription copied from class:AbstractCaseAssertEnter into a chainedProcessTaskAssertinspecting the one and mostly one 'processTask' currently available in the context of the actual caseExecution under test of this AbstractCaseAssert. The query is automatically narrowed down to the actual caseExecution under test of this assertion as well as to the type 'processTask'. Change visibility to public for those inheriting classes for whose underlying objects under test this method makes sense- Overrides:
- processTaskin class- AbstractCaseAssert<CaseInstanceAssert,- CaseInstance> 
- Parameters:
- query- CaseExecutionQuery further narrowing down the search for caseExecutions. The query is automatically narrowed down to the actual 'parent' CaseExecution under test of this assertion as well as to the type 'processTask'.
- Returns:
- the only CaseExecution resulting from the given search. A 'null' CaseExecution in case no such CaseExecution is available.
 
- 
processTaskDescription copied from class:AbstractCaseAssertEnter into a chainedProcessTaskAssertinspecting the one and mostly one 'processTask' currently available in the context of the actual caseExecution under test of this AbstractCaseAssert. The query is automatically narrowed down to the actual caseExecution under test of this assertion as well as to the type 'processTask'. Change visibility to public for those inheriting classes for whose underlying objects under test this method makes sense- Overrides:
- processTaskin class- AbstractCaseAssert<CaseInstanceAssert,- CaseInstance> 
- Parameters:
- activityId- activity if further narrowing down the search for caseExecutions. The query is automatically narrowed down to the actual 'parent' CaseExecution under test of this assertion as well as to the type 'processTask'.
- Returns:
- the only CaseExecution with the given activitiy id. A 'null' CaseExecution in case no such CaseExecution is available.
 
- 
stageDescription copied from class:AbstractCaseAssertEnter into a chainedStageAssertinspecting the one and mostly one 'stage' currently available in the context of the actual caseExecution under test of this AbstractCaseAssert. The query is automatically narrowed down to the actual caseExecution under test of this assertion as well as to the type 'stage'. Change visibility to public for those inheriting classes for whose underlying objects under test this method makes sense- Overrides:
- stagein class- AbstractCaseAssert<CaseInstanceAssert,- CaseInstance> 
- Parameters:
- query- CaseExecutionQuery further narrowing down the search for caseExecutions. The query is automatically narrowed down to the actual 'parent' CaseExecution under test of this assertion as well as to the type 'stage'.
- Returns:
- the only CaseExecution resulting from the given search. A 'null' CaseExecution in case no such CaseExecution is available.
 
- 
stageDescription copied from class:AbstractCaseAssertEnter into a chainedStageAssertinspecting the one and mostly one 'stage' currently available in the context of the actual caseExecution under test of this AbstractCaseAssert. The query is automatically narrowed down to the actual caseExecution under test of this assertion as well as to the type 'stage'. Change visibility to public for those inheriting classes for whose underlying objects under test this method makes sense- Overrides:
- stagein class- AbstractCaseAssert<CaseInstanceAssert,- CaseInstance> 
- Parameters:
- activityId- activity if further narrowing down the search for caseExecutions. The query is automatically narrowed down to the actual 'parent' CaseExecution under test of this assertion as well as to the type 'stage'.
- Returns:
- the only CaseExecution with the given activitiy id. A 'null' CaseExecution in case no such CaseExecution is available.
 
- 
milestoneDescription copied from class:AbstractCaseAssertEnter into a chainedMilestoneAssertinspecting the one and mostly one 'milestone' currently available in the context of the actual caseExecution under test of this AbstractCaseAssert. The query is automatically narrowed down to the actual caseExecution under test of this assertion as well as to the type 'milestone'. Change visibility to public for those inheriting classes for whose underlying objects under test this method makes sense- Overrides:
- milestonein class- AbstractCaseAssert<CaseInstanceAssert,- CaseInstance> 
- Parameters:
- query- CaseExecutionQuery further narrowing down the search for caseExecutions. The query is automatically narrowed down to the actual 'parent' CaseExecution under test of this assertion as well as to the type 'milestone'.
- Returns:
- the only CaseExecution resulting from the given search. A 'null' CaseExecution in case no such CaseExecution is available.
 
- 
milestoneDescription copied from class:AbstractCaseAssertEnter into a chainedMilestoneAssertinspecting the one and mostly one 'milestone' currently available in the context of the actual caseExecution under test of this AbstractCaseAssert. The query is automatically narrowed down to the actual caseExecution under test of this assertion as well as to the type 'milestone'. Change visibility to public for those inheriting classes for whose underlying objects under test this method makes sense- Overrides:
- milestonein class- AbstractCaseAssert<CaseInstanceAssert,- CaseInstance> 
- Parameters:
- activityId- activity if further narrowing down the search for caseExecutions. The query is automatically narrowed down to the actual 'parent' CaseExecution under test of this assertion as well as to the type 'milestone'.
- Returns:
- the only CaseExecution with the given activitiy id. A 'null' CaseExecution in case no such CaseExecution is available.
 
- 
getHistoricStateprotected int getHistoricState()- Overrides:
- getHistoricStatein class- AbstractCaseAssert<CaseInstanceAssert,- CaseInstance> 
- Returns:
- historic state for the object under test from history database
 
 
-