Class StageAssert
- 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<StageAssert,org.camunda.bpm.engine.runtime.CaseExecution>
-
- org.camunda.bpm.engine.test.assertions.cmmn.StageAssert
-
- All Implemented Interfaces:
org.assertj.core.api.Assert<StageAssert,org.camunda.bpm.engine.runtime.CaseExecution>,org.assertj.core.api.Descriptable<StageAssert>,org.assertj.core.api.ExtensionPoints<StageAssert,org.camunda.bpm.engine.runtime.CaseExecution>
public class StageAssert extends AbstractCaseAssert<StageAssert,org.camunda.bpm.engine.runtime.CaseExecution>
-
-
Field Summary
-
Fields inherited from class org.camunda.bpm.engine.test.assertions.bpmn.AbstractProcessAssert
engine
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedStageAssert(org.camunda.bpm.engine.ProcessEngine engine, org.camunda.bpm.engine.runtime.CaseExecution actual)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static StageAssertassertThat(org.camunda.bpm.engine.ProcessEngine engine, org.camunda.bpm.engine.runtime.CaseExecution actual)CaseTaskAssertcaseTask(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(org.camunda.bpm.engine.runtime.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.HumanTaskAsserthumanTask(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(org.camunda.bpm.engine.runtime.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.StageAssertisActive()Verifies the expectation that theCaseExecutionis 'active'.StageAssertisAvailable()Verifies the expectation that theCaseExecutionis 'available'.StageAssertisCompleted()Verifies the expectation that theCaseExecutionis 'completed'.StageAssertisDisabled()Verifies the expectation that theCaseExecutionis 'disabled'.StageAssertisEnabled()Verifies the expectation that theCaseExecutionis 'enabled'.StageAssertisTerminated()Verifies the expectation that theCaseExecutionis 'terminated'.MilestoneAssertmilestone(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(org.camunda.bpm.engine.runtime.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(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(org.camunda.bpm.engine.runtime.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(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(org.camunda.bpm.engine.runtime.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, getHistoricState, hasVars, historicCaseActivityInstanceQuery, isCaseInstance, isCaseTask, isClosed, 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
-
-
-
-
Method Detail
-
assertThat
protected static StageAssert assertThat(org.camunda.bpm.engine.ProcessEngine engine, org.camunda.bpm.engine.runtime.CaseExecution actual)
-
isAvailable
public StageAssert isAvailable()
Description copied from class:AbstractCaseAssertVerifies the expectation that theCaseExecutionis 'available'. Change visibility to public for those inheriting classes for whose underlying objects under test this status makes sense- Overrides:
isAvailablein classAbstractCaseAssert<StageAssert,org.camunda.bpm.engine.runtime.CaseExecution>- Returns:
- this
-
isEnabled
public StageAssert isEnabled()
Description copied from class:AbstractCaseAssertVerifies the expectation that theCaseExecutionis 'enabled'. Change visibility to public for those inheriting classes for whose underlying objects under test this status makes sense- Overrides:
isEnabledin classAbstractCaseAssert<StageAssert,org.camunda.bpm.engine.runtime.CaseExecution>- Returns:
- this
-
isDisabled
public StageAssert isDisabled()
Description copied from class:AbstractCaseAssertVerifies the expectation that theCaseExecutionis 'disabled'. Change visibility to public for those inheriting classes for whose underlying objects under test this status makes sense- Overrides:
isDisabledin classAbstractCaseAssert<StageAssert,org.camunda.bpm.engine.runtime.CaseExecution>- Returns:
- this
-
isActive
public StageAssert 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<StageAssert,org.camunda.bpm.engine.runtime.CaseExecution>- Returns:
- this
-
isCompleted
public StageAssert 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<StageAssert,org.camunda.bpm.engine.runtime.CaseExecution>- Returns:
- this
-
isTerminated
public StageAssert 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<StageAssert,org.camunda.bpm.engine.runtime.CaseExecution>- Returns:
- this
-
humanTask
public HumanTaskAssert humanTask(org.camunda.bpm.engine.runtime.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<StageAssert,org.camunda.bpm.engine.runtime.CaseExecution>- 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(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<StageAssert,org.camunda.bpm.engine.runtime.CaseExecution>- 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(org.camunda.bpm.engine.runtime.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<StageAssert,org.camunda.bpm.engine.runtime.CaseExecution>- 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(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<StageAssert,org.camunda.bpm.engine.runtime.CaseExecution>- 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(org.camunda.bpm.engine.runtime.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<StageAssert,org.camunda.bpm.engine.runtime.CaseExecution>- 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(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<StageAssert,org.camunda.bpm.engine.runtime.CaseExecution>- 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(org.camunda.bpm.engine.runtime.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<StageAssert,org.camunda.bpm.engine.runtime.CaseExecution>- 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(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<StageAssert,org.camunda.bpm.engine.runtime.CaseExecution>- 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(org.camunda.bpm.engine.runtime.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<StageAssert,org.camunda.bpm.engine.runtime.CaseExecution>- 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(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<StageAssert,org.camunda.bpm.engine.runtime.CaseExecution>- 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.
-
-