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>
public class CaseInstanceAssert extends AbstractCaseAssert<CaseInstanceAssert,CaseInstance>
-
-
Field Summary
-
Fields inherited from class org.camunda.bpm.engine.test.assertions.bpmn.AbstractProcessAssert
engine
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCaseInstanceAssert(ProcessEngine engine, CaseInstance actual)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static CaseInstanceAssertassertThat(ProcessEngine engine, CaseInstance actual)CaseTaskAssertcaseTask(java.lang.String activityId)Enter into a chainedCaseTaskAssertinspecting the one and mostly one 'caseTask' currently available in the context of the actual caseExecution under test of this AbstractCaseAssert.CaseTaskAssertcaseTask(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 intgetHistoricState()HumanTaskAsserthumanTask(java.lang.String activityId)Enter into a chainedHumanTaskAssertinspecting the one and mostly one 'humanTask' currently available in the context of the actual caseExecution under test of this AbstractCaseAssert.HumanTaskAsserthumanTask(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.CaseInstanceAssertisActive()Verifies the expectation that theCaseExecutionis 'active'.CaseInstanceAssertisClosed()Verifies the expectation that theCaseExecutionis 'closed'.CaseInstanceAssertisCompleted()Verifies the expectation that theCaseExecutionis 'completed'.CaseInstanceAssertisTerminated()Verifies the expectation that theCaseExecutionis 'terminated'.MilestoneAssertmilestone(java.lang.String activityId)Enter into a chainedMilestoneAssertinspecting the one and mostly one 'milestone' currently available in the context of the actual caseExecution under test of this AbstractCaseAssert.MilestoneAssertmilestone(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.ProcessTaskAssertprocessTask(java.lang.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.ProcessTaskAssertprocessTask(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.StageAssertstage(java.lang.String activityId)Enter into a chainedStageAssertinspecting the one and mostly one 'stage' currently available in the context of the actual caseExecution under test of this AbstractCaseAssert.StageAssertstage(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.AbstractCaseAssert
caseExecution, caseExecutionQuery, descendantCaseExecution, getActual, getCurrent, hasVars, historicCaseActivityInstanceQuery, isAvailable, isCaseInstance, isCaseTask, isDisabled, isEnabled, isHumanTask, isMilestone, isProcessTask, isStage, toString, variables, vars
-
Methods inherited from class org.camunda.bpm.engine.test.assertions.bpmn.AbstractProcessAssert
caseDefinitionQuery, caseInstanceQuery, caseService, executionQuery, externalTaskQuery, externalTaskService, formService, getExistingCurrent, getLastAssert, historicActivityInstanceQuery, historicProcessInstanceQuery, historicVariableInstanceQuery, historyService, jobQuery, managementService, processDefinitionQuery, processInstanceQuery, repositoryService, resetLastAsserts, runtimeService, taskQuery, taskService
-
Methods inherited from class org.assertj.core.api.AbstractAssert
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, usingRecursiveComparison, usingRecursiveComparison, withFailMessage, withFailMessage, withRepresentation, withThreadDumpOnError
-
-
-
-
Constructor Detail
-
CaseInstanceAssert
protected CaseInstanceAssert(ProcessEngine engine, CaseInstance actual)
-
-
Method Detail
-
assertThat
protected static CaseInstanceAssert assertThat(ProcessEngine engine, CaseInstance actual)
-
isActive
public CaseInstanceAssert isActive()
Description 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 classAbstractCaseAssert<CaseInstanceAssert,CaseInstance>- Returns:
- this
-
isCompleted
public CaseInstanceAssert isCompleted()
Description 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 classAbstractCaseAssert<CaseInstanceAssert,CaseInstance>- Returns:
- this
-
isClosed
public CaseInstanceAssert isClosed()
Description 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 classAbstractCaseAssert<CaseInstanceAssert,CaseInstance>- Returns:
- this
-
isTerminated
public CaseInstanceAssert isTerminated()
Description 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 classAbstractCaseAssert<CaseInstanceAssert,CaseInstance>- Returns:
- this
-
humanTask
public HumanTaskAssert humanTask(CaseExecutionQuery query)
Description 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 classAbstractCaseAssert<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.
-
humanTask
public HumanTaskAssert humanTask(java.lang.String activityId)
Description 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 classAbstractCaseAssert<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.
-
caseTask
public CaseTaskAssert caseTask(CaseExecutionQuery query)
Description 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 classAbstractCaseAssert<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.
-
caseTask
public CaseTaskAssert caseTask(java.lang.String activityId)
Description 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 classAbstractCaseAssert<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.
-
processTask
public ProcessTaskAssert processTask(CaseExecutionQuery query)
Description 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 classAbstractCaseAssert<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.
-
processTask
public ProcessTaskAssert processTask(java.lang.String activityId)
Description 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 classAbstractCaseAssert<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.
-
stage
public StageAssert stage(CaseExecutionQuery query)
Description 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 classAbstractCaseAssert<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.
-
stage
public StageAssert stage(java.lang.String activityId)
Description 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 classAbstractCaseAssert<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.
-
milestone
public MilestoneAssert milestone(CaseExecutionQuery query)
Description 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 classAbstractCaseAssert<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.
-
milestone
public MilestoneAssert milestone(java.lang.String activityId)
Description 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 classAbstractCaseAssert<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.
-
getHistoricState
protected int getHistoricState()
- Overrides:
getHistoricStatein classAbstractCaseAssert<CaseInstanceAssert,CaseInstance>- Returns:
- historic state for the object under test from history database
-
-