org.camunda.bpm.engine.test.assertions.cmmn
Class StageAssert

java.lang.Object
  extended by org.assertj.core.api.AbstractAssert<S,A>
      extended by org.camunda.bpm.engine.test.assertions.bpmn.AbstractProcessAssert<S,A>
          extended by org.camunda.bpm.engine.test.assertions.cmmn.AbstractCaseAssert<StageAssert,org.camunda.bpm.engine.runtime.CaseExecution>
              extended by 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>

Author:
Martin Schimak

Field Summary
 
Fields inherited from class org.camunda.bpm.engine.test.assertions.bpmn.AbstractProcessAssert
engine
 
Fields inherited from class org.assertj.core.api.AbstractAssert
actual, info, myself
 
Constructor Summary
protected StageAssert(org.camunda.bpm.engine.ProcessEngine engine, org.camunda.bpm.engine.runtime.CaseExecution actual)
           
 
Method Summary
protected static StageAssert assertThat(org.camunda.bpm.engine.ProcessEngine engine, org.camunda.bpm.engine.runtime.CaseExecution actual)
           
 CaseTaskAssert caseTask()
          Enter into a chained CaseTaskAssert inspecting the one and mostly one 'caseTask' currently available in the context of the actual caseExecution under test of this AbstractCaseAssert.
 CaseTaskAssert caseTask(org.camunda.bpm.engine.runtime.CaseExecutionQuery query)
          Enter into a chained CaseTaskAssert inspecting the one and mostly one 'caseTask' currently available in the context of the actual caseExecution under test of this AbstractCaseAssert.
 CaseTaskAssert caseTask(String activityId)
          Enter into a chained CaseTaskAssert inspecting the one and mostly one 'caseTask' currently available in the context of the actual caseExecution under test of this AbstractCaseAssert.
 HumanTaskAssert humanTask()
          Enter into a chained HumanTaskAssert inspecting the one and mostly one 'humanTask' currently available in the context of the actual caseExecution under test of this AbstractCaseAssert.
 HumanTaskAssert humanTask(org.camunda.bpm.engine.runtime.CaseExecutionQuery query)
          Enter into a chained HumanTaskAssert inspecting the one and mostly one 'humanTask' currently available in the context of the actual caseExecution under test of this AbstractCaseAssert.
 HumanTaskAssert humanTask(String activityId)
          Enter into a chained HumanTaskAssert 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 the CaseExecution is 'active'.
 StageAssert isAvailable()
          Verifies the expectation that the CaseExecution is 'available'.
 StageAssert isCompleted()
          Verifies the expectation that the CaseExecution is 'completed'.
 StageAssert isDisabled()
          Verifies the expectation that the CaseExecution is 'disabled'.
 StageAssert isEnabled()
          Verifies the expectation that the CaseExecution is 'enabled'.
 StageAssert isFailed()
          Verifies the expectation that the CaseExecution is 'failed'.
 StageAssert isSuspended()
          Verifies the expectation that the CaseExecution is 'suspended'.
 StageAssert isTerminated()
          Verifies the expectation that the CaseExecution is 'terminated'.
 MilestoneAssert milestone()
          Enter into a chained MilestoneAssert inspecting the one and mostly one 'milestone' currently available in the context of the actual caseExecution under test of this AbstractCaseAssert.
 MilestoneAssert milestone(org.camunda.bpm.engine.runtime.CaseExecutionQuery query)
          Enter into a chained MilestoneAssert inspecting the one and mostly one 'milestone' currently available in the context of the actual caseExecution under test of this AbstractCaseAssert.
 MilestoneAssert milestone(String activityId)
          Enter into a chained MilestoneAssert inspecting the one and mostly one 'milestone' currently available in the context of the actual caseExecution under test of this AbstractCaseAssert.
 ProcessTaskAssert processTask()
          Enter into a chained ProcessTaskAssert inspecting the one and mostly one 'processTask' currently available in the context of the actual caseExecution under test of this AbstractCaseAssert.
 ProcessTaskAssert processTask(org.camunda.bpm.engine.runtime.CaseExecutionQuery query)
          Enter into a chained ProcessTaskAssert inspecting the one and mostly one 'processTask' currently available in the context of the actual caseExecution under test of this AbstractCaseAssert.
 ProcessTaskAssert processTask(String activityId)
          Enter into a chained ProcessTaskAssert inspecting the one and mostly one 'processTask' currently available in the context of the actual caseExecution under test of this AbstractCaseAssert.
 StageAssert stage()
          Enter into a chained StageAssert inspecting the one and mostly one 'stage' currently available in the context of the actual caseExecution under test of this AbstractCaseAssert.
 StageAssert stage(org.camunda.bpm.engine.runtime.CaseExecutionQuery query)
          Enter into a chained StageAssert inspecting the one and mostly one 'stage' currently available in the context of the actual caseExecution under test of this AbstractCaseAssert.
 StageAssert stage(String activityId)
          Enter into a chained StageAssert 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, caseExecution, caseExecution, caseExecutionQuery, descendantCaseExecution, getActual, getCurrent, getHistoric, hasVars, historicCaseActivityInstanceQuery, isCaseInstance, isCaseTask, isClosed, isHumanTask, isMilestone, isProcessTask, isStage, toString, variables, vars
 
Methods inherited from class org.camunda.bpm.engine.test.assertions.bpmn.AbstractProcessAssert
assertApi, authorizationService, caseDefinitionQuery, caseInstanceQuery, caseService, executionQuery, formService, getExistingCurrent, getLastAssert, historicActivityInstanceQuery, historicDetailQuery, historicProcessInstanceQuery, historicTaskInstanceQuery, historicVariableInstanceQuery, historyService, identityService, jobQuery, managementService, processDefinitionQuery, processInstanceQuery, repositoryService, resetLastAsserts, runtimeService, supportsApi, taskQuery, taskService, variableInstanceQuery
 
Methods inherited from class org.assertj.core.api.AbstractAssert
as, as, describedAs, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, equals, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, inBinary, inHexadecimal, is, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, overridingErrorMessage, usingComparator, usingDefaultComparator
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StageAssert

protected StageAssert(org.camunda.bpm.engine.ProcessEngine engine,
                      org.camunda.bpm.engine.runtime.CaseExecution actual)
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: AbstractCaseAssert
Verifies the expectation that the CaseExecution is 'available'. Change visibility to public for those inheriting classes for whose underlying objects under test this status makes sense

Overrides:
isAvailable in class AbstractCaseAssert<StageAssert,org.camunda.bpm.engine.runtime.CaseExecution>
Returns:
this

isEnabled

public StageAssert isEnabled()
Description copied from class: AbstractCaseAssert
Verifies the expectation that the CaseExecution is 'enabled'. Change visibility to public for those inheriting classes for whose underlying objects under test this status makes sense

Overrides:
isEnabled in class AbstractCaseAssert<StageAssert,org.camunda.bpm.engine.runtime.CaseExecution>
Returns:
this

isDisabled

public StageAssert isDisabled()
Description copied from class: AbstractCaseAssert
Verifies the expectation that the CaseExecution is 'disabled'. Change visibility to public for those inheriting classes for whose underlying objects under test this status makes sense

Overrides:
isDisabled in class AbstractCaseAssert<StageAssert,org.camunda.bpm.engine.runtime.CaseExecution>
Returns:
this

isActive

public StageAssert isActive()
Description copied from class: AbstractCaseAssert
Verifies the expectation that the CaseExecution is 'active'. Change visibility to public for those inheriting classes for whose underlying objects under test this status makes sense

Overrides:
isActive in class AbstractCaseAssert<StageAssert,org.camunda.bpm.engine.runtime.CaseExecution>
Returns:
this

isSuspended

public StageAssert isSuspended()
Description copied from class: AbstractCaseAssert
Verifies the expectation that the CaseExecution is 'suspended'. Change visibility to public for those inheriting classes for whose underlying objects under test this status makes sense

Overrides:
isSuspended in class AbstractCaseAssert<StageAssert,org.camunda.bpm.engine.runtime.CaseExecution>
Returns:
this

isCompleted

public StageAssert isCompleted()
Description copied from class: AbstractCaseAssert
Verifies the expectation that the CaseExecution is 'completed'. Change visibility to public for those inheriting classes for whose underlying objects under test this status makes sense

Overrides:
isCompleted in class AbstractCaseAssert<StageAssert,org.camunda.bpm.engine.runtime.CaseExecution>
Returns:
this

isFailed

public StageAssert isFailed()
Description copied from class: AbstractCaseAssert
Verifies the expectation that the CaseExecution is 'failed'. Change visibility to public for those inheriting classes for whose underlying objects under test this status makes sense

Overrides:
isFailed in class AbstractCaseAssert<StageAssert,org.camunda.bpm.engine.runtime.CaseExecution>
Returns:
this

isTerminated

public StageAssert isTerminated()
Description copied from class: AbstractCaseAssert
Verifies the expectation that the CaseExecution is 'terminated'. Change visibility to public for those inheriting classes for whose underlying objects under test this status makes sense

Overrides:
isTerminated in class AbstractCaseAssert<StageAssert,org.camunda.bpm.engine.runtime.CaseExecution>
Returns:
this

humanTask

public HumanTaskAssert humanTask(org.camunda.bpm.engine.runtime.CaseExecutionQuery query)
Description copied from class: AbstractCaseAssert
Enter into a chained HumanTaskAssert 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 class AbstractCaseAssert<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: AbstractCaseAssert
Enter into a chained HumanTaskAssert 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 class AbstractCaseAssert<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.

humanTask

public HumanTaskAssert humanTask()
Description copied from class: AbstractCaseAssert
Enter into a chained HumanTaskAssert 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 class AbstractCaseAssert<StageAssert,org.camunda.bpm.engine.runtime.CaseExecution>
Returns:
the only CaseExecution existing in the context of this case execution. 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: AbstractCaseAssert
Enter into a chained CaseTaskAssert 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 class AbstractCaseAssert<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: AbstractCaseAssert
Enter into a chained CaseTaskAssert 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 class AbstractCaseAssert<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.

caseTask

public CaseTaskAssert caseTask()
Description copied from class: AbstractCaseAssert
Enter into a chained CaseTaskAssert 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'.

Overrides:
caseTask in class AbstractCaseAssert<StageAssert,org.camunda.bpm.engine.runtime.CaseExecution>
Returns:
the only CaseExecution existing in the context of this case execution. 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: AbstractCaseAssert
Enter into a chained ProcessTaskAssert 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 class AbstractCaseAssert<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: AbstractCaseAssert
Enter into a chained ProcessTaskAssert 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 class AbstractCaseAssert<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.

processTask

public ProcessTaskAssert processTask()
Description copied from class: AbstractCaseAssert
Enter into a chained ProcessTaskAssert 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'.

Overrides:
processTask in class AbstractCaseAssert<StageAssert,org.camunda.bpm.engine.runtime.CaseExecution>
Returns:
the only CaseExecution existing in the context of this case execution. 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: AbstractCaseAssert
Enter into a chained StageAssert 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 class AbstractCaseAssert<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: AbstractCaseAssert
Enter into a chained StageAssert 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 class AbstractCaseAssert<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.

stage

public StageAssert stage()
Description copied from class: AbstractCaseAssert
Enter into a chained StageAssert 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'.

Overrides:
stage in class AbstractCaseAssert<StageAssert,org.camunda.bpm.engine.runtime.CaseExecution>
Returns:
the only CaseExecution existing in the context of this case execution. 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: AbstractCaseAssert
Enter into a chained MilestoneAssert 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 class AbstractCaseAssert<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: AbstractCaseAssert
Enter into a chained MilestoneAssert 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 class AbstractCaseAssert<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.

milestone

public MilestoneAssert milestone()
Description copied from class: AbstractCaseAssert
Enter into a chained MilestoneAssert 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'.

Overrides:
milestone in class AbstractCaseAssert<StageAssert,org.camunda.bpm.engine.runtime.CaseExecution>
Returns:
the only CaseExecution existing in the context of this case execution. A 'null' CaseExecution in case no such CaseExecution is available.


Copyright © 2016 camunda services GmbH. All rights reserved.