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,CaseExecution>
-
- org.camunda.bpm.engine.test.assertions.cmmn.StageAssert
-
- All Implemented Interfaces:
org.assertj.core.api.Assert<StageAssert,CaseExecution>
,org.assertj.core.api.Descriptable<StageAssert>
,org.assertj.core.api.ExtensionPoints<StageAssert,CaseExecution>
public class StageAssert extends AbstractCaseAssert<StageAssert,CaseExecution>
-
-
Field Summary
-
Fields inherited from class org.camunda.bpm.engine.test.assertions.bpmn.AbstractProcessAssert
engine
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
StageAssert(ProcessEngine engine, CaseExecution actual)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static StageAssert
assertThat(ProcessEngine engine, CaseExecution actual)
CaseTaskAssert
caseTask(java.lang.String activityId)
Enter into a chainedCaseTaskAssert
inspecting the one and mostly one 'caseTask' currently available in the context of the actual caseExecution under test of this AbstractCaseAssert.CaseTaskAssert
caseTask(CaseExecutionQuery query)
Enter into a chainedCaseTaskAssert
inspecting the one and mostly one 'caseTask' currently available in the context of the actual caseExecution under test of this AbstractCaseAssert.HumanTaskAssert
humanTask(java.lang.String activityId)
Enter into a chainedHumanTaskAssert
inspecting the one and mostly one 'humanTask' currently available in the context of the actual caseExecution under test of this AbstractCaseAssert.HumanTaskAssert
humanTask(CaseExecutionQuery query)
Enter into a chainedHumanTaskAssert
inspecting the one and mostly one 'humanTask' currently available in the context of the actual caseExecution under test of this AbstractCaseAssert.StageAssert
isActive()
Verifies the expectation that theCaseExecution
is 'active'.StageAssert
isAvailable()
Verifies the expectation that theCaseExecution
is 'available'.StageAssert
isCompleted()
Verifies the expectation that theCaseExecution
is 'completed'.StageAssert
isDisabled()
Verifies the expectation that theCaseExecution
is 'disabled'.StageAssert
isEnabled()
Verifies the expectation that theCaseExecution
is 'enabled'.StageAssert
isTerminated()
Verifies the expectation that theCaseExecution
is 'terminated'.MilestoneAssert
milestone(java.lang.String activityId)
Enter into a chainedMilestoneAssert
inspecting the one and mostly one 'milestone' currently available in the context of the actual caseExecution under test of this AbstractCaseAssert.MilestoneAssert
milestone(CaseExecutionQuery query)
Enter into a chainedMilestoneAssert
inspecting the one and mostly one 'milestone' currently available in the context of the actual caseExecution under test of this AbstractCaseAssert.ProcessTaskAssert
processTask(java.lang.String activityId)
Enter into a chainedProcessTaskAssert
inspecting the one and mostly one 'processTask' currently available in the context of the actual caseExecution under test of this AbstractCaseAssert.ProcessTaskAssert
processTask(CaseExecutionQuery query)
Enter into a chainedProcessTaskAssert
inspecting the one and mostly one 'processTask' currently available in the context of the actual caseExecution under test of this AbstractCaseAssert.StageAssert
stage(java.lang.String activityId)
Enter into a chainedStageAssert
inspecting the one and mostly one 'stage' currently available in the context of the actual caseExecution under test of this AbstractCaseAssert.StageAssert
stage(CaseExecutionQuery query)
Enter into a chainedStageAssert
inspecting 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, setCustomRepresentation, setDescriptionConsumer, setPrintAssertionsDescription, throwAssertionError, usingComparator, usingComparator, usingDefaultComparator, usingRecursiveComparison, usingRecursiveComparison, withFailMessage, withFailMessage, withRepresentation, withThreadDumpOnError
-
-
-
-
Constructor Detail
-
StageAssert
protected StageAssert(ProcessEngine engine, CaseExecution actual)
-
-
Method Detail
-
assertThat
protected static StageAssert assertThat(ProcessEngine engine, CaseExecution actual)
-
isAvailable
public StageAssert isAvailable()
Description copied from class:AbstractCaseAssert
Verifies the expectation that theCaseExecution
is 'available'. Change visibility to public for those inheriting classes for whose underlying objects under test this status makes sense- Overrides:
isAvailable
in classAbstractCaseAssert<StageAssert,CaseExecution>
- Returns:
- this
-
isEnabled
public StageAssert isEnabled()
Description copied from class:AbstractCaseAssert
Verifies the expectation that theCaseExecution
is 'enabled'. Change visibility to public for those inheriting classes for whose underlying objects under test this status makes sense- Overrides:
isEnabled
in classAbstractCaseAssert<StageAssert,CaseExecution>
- Returns:
- this
-
isDisabled
public StageAssert isDisabled()
Description copied from class:AbstractCaseAssert
Verifies the expectation that theCaseExecution
is 'disabled'. Change visibility to public for those inheriting classes for whose underlying objects under test this status makes sense- Overrides:
isDisabled
in classAbstractCaseAssert<StageAssert,CaseExecution>
- Returns:
- this
-
isActive
public StageAssert isActive()
Description copied from class:AbstractCaseAssert
Verifies the expectation that theCaseExecution
is 'active'. Change visibility to public for those inheriting classes for whose underlying objects under test this status makes sense- Overrides:
isActive
in classAbstractCaseAssert<StageAssert,CaseExecution>
- Returns:
- this
-
isCompleted
public StageAssert isCompleted()
Description copied from class:AbstractCaseAssert
Verifies the expectation that theCaseExecution
is 'completed'. Change visibility to public for those inheriting classes for whose underlying objects under test this status makes sense- Overrides:
isCompleted
in classAbstractCaseAssert<StageAssert,CaseExecution>
- Returns:
- this
-
isTerminated
public StageAssert isTerminated()
Description copied from class:AbstractCaseAssert
Verifies the expectation that theCaseExecution
is 'terminated'. Change visibility to public for those inheriting classes for whose underlying objects under test this status makes sense- Overrides:
isTerminated
in classAbstractCaseAssert<StageAssert,CaseExecution>
- Returns:
- this
-
humanTask
public HumanTaskAssert humanTask(CaseExecutionQuery query)
Description copied from class:AbstractCaseAssert
Enter into a chainedHumanTaskAssert
inspecting 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:
humanTask
in classAbstractCaseAssert<StageAssert,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(java.lang.String activityId)
Description copied from class:AbstractCaseAssert
Enter into a chainedHumanTaskAssert
inspecting 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:
humanTask
in classAbstractCaseAssert<StageAssert,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(CaseExecutionQuery query)
Description copied from class:AbstractCaseAssert
Enter into a chainedCaseTaskAssert
inspecting 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:
caseTask
in classAbstractCaseAssert<StageAssert,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(java.lang.String activityId)
Description copied from class:AbstractCaseAssert
Enter into a chainedCaseTaskAssert
inspecting 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:
caseTask
in classAbstractCaseAssert<StageAssert,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(CaseExecutionQuery query)
Description copied from class:AbstractCaseAssert
Enter into a chainedProcessTaskAssert
inspecting 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:
processTask
in classAbstractCaseAssert<StageAssert,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(java.lang.String activityId)
Description copied from class:AbstractCaseAssert
Enter into a chainedProcessTaskAssert
inspecting 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:
processTask
in classAbstractCaseAssert<StageAssert,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(CaseExecutionQuery query)
Description copied from class:AbstractCaseAssert
Enter into a chainedStageAssert
inspecting 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:
stage
in classAbstractCaseAssert<StageAssert,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(java.lang.String activityId)
Description copied from class:AbstractCaseAssert
Enter into a chainedStageAssert
inspecting 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:
stage
in classAbstractCaseAssert<StageAssert,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(CaseExecutionQuery query)
Description copied from class:AbstractCaseAssert
Enter into a chainedMilestoneAssert
inspecting 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:
milestone
in classAbstractCaseAssert<StageAssert,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(java.lang.String activityId)
Description copied from class:AbstractCaseAssert
Enter into a chainedMilestoneAssert
inspecting 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:
milestone
in classAbstractCaseAssert<StageAssert,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.
-
-