org.camunda.bpm.engine.test.assertions.cmmn
Class AbstractCaseAssert<S extends AbstractCaseAssert<S,A>,A extends org.camunda.bpm.engine.runtime.CaseExecution>

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<S,A>
All Implemented Interfaces:
org.assertj.core.api.Assert<S,A>, org.assertj.core.api.Descriptable<S>, org.assertj.core.api.ExtensionPoints<S,A>
Direct Known Subclasses:
CaseExecutionAssert, CaseInstanceAssert, CaseTaskAssert, HumanTaskAssert, MilestoneAssert, ProcessTaskAssert, StageAssert

public abstract class AbstractCaseAssert<S extends AbstractCaseAssert<S,A>,A extends org.camunda.bpm.engine.runtime.CaseExecution>
extends AbstractProcessAssert<S,A>

Author:
Martin Schimak , Malte Sörensen , Martin Günther

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 AbstractCaseAssert(org.camunda.bpm.engine.ProcessEngine engine, A actual, Class<?> selfType)
           
 
Method Summary
protected  CaseExecutionAssert caseExecution()
          Retrieve a chained CaseExecution currently available in the context of the actual caseExecution under test of this AbstractCaseAssert.
protected  CaseExecutionAssert caseExecution(org.camunda.bpm.engine.runtime.CaseExecutionQuery query)
          Retrieve a child CaseExecution currently available in the context of the actual caseExecution under test of this AbstractCaseAssert.
protected  CaseExecutionAssert caseExecution(String activityId)
          Retrieve a chained CaseExecution currently available in the context of the actual caseExecution under test of this AbstractCaseAssert.
protected  org.camunda.bpm.engine.runtime.CaseExecutionQuery caseExecutionQuery()
          CaseExecutionQuery, automatically narrowed to CaseInstance of actual CaseExecution
protected  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.
protected  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.
protected  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.
protected  CaseExecutionAssert descendantCaseExecution(org.camunda.bpm.engine.runtime.CaseExecutionQuery query)
          Retrieve any descendant CaseExecution currently available in the context of the actual caseInstance under test of this AbstractCaseAssert.
 A getActual()
          Delivers the the actual object under test.
protected  A getCurrent()
          Retrieve refreshed status of object under test from runtime database
protected  org.camunda.bpm.engine.history.HistoricCaseActivityInstance getHistoric()
          Retrieve HistoricCaseActivityInstance for object under test from history database
protected  S hasVars(String[] names)
           
protected  org.camunda.bpm.engine.history.HistoricCaseActivityInstanceQuery historicCaseActivityInstanceQuery()
          HistoricCaseActivityInstanceQuery, automatically narrowed to CaseInstance of actual CaseExecution
protected  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.
protected  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.
protected  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.
protected  S isActive()
          Verifies the expectation that the CaseExecution is 'active'.
protected  S isAvailable()
          Verifies the expectation that the CaseExecution is 'available'.
protected  CaseInstanceAssert isCaseInstance()
          Verifies the expectation that the CaseExecution is the 'case' instance.
protected  CaseTaskAssert isCaseTask()
          Verifies the expectation that the CaseExecution is a 'caseTask' Change visibility to public for those inheriting classes for whose underlying objects under test this assertion makes sense
protected  S isClosed()
          Verifies the expectation that the CaseExecution is 'closed'.
protected  S isCompleted()
          Verifies the expectation that the CaseExecution is 'completed'.
protected  S isDisabled()
          Verifies the expectation that the CaseExecution is 'disabled'.
protected  S isEnabled()
          Verifies the expectation that the CaseExecution is 'enabled'.
protected  S isFailed()
          Verifies the expectation that the CaseExecution is 'failed'.
protected  HumanTaskAssert isHumanTask()
          Verifies the expectation that the CaseExecution is a 'humanTask' Change visibility to public for those inheriting classes for whose underlying objects under test this assertion makes sense
protected  MilestoneAssert isMilestone()
          Verifies the expectation that the CaseExecution is a 'milestone' Change visibility to public for those inheriting classes for whose underlying objects under test this assertion makes sense
protected  ProcessTaskAssert isProcessTask()
          Verifies the expectation that the CaseExecution is a 'processTask' Change visibility to public for those inheriting classes for whose underlying objects under test this assertion makes sense
protected  StageAssert isStage()
          Verifies the expectation that the CaseExecution is a 'stage' Change visibility to public for those inheriting classes for whose underlying objects under test this assertion makes sense
protected  S isSuspended()
          Verifies the expectation that the CaseExecution is 'suspended'.
protected  S isTerminated()
          Verifies the expectation that the CaseExecution is 'terminated'.
protected  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.
protected  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.
protected  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.
protected  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.
protected  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.
protected  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.
protected  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.
protected  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.
protected  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.
protected  String toString(A caseExecution)
           
protected  org.assertj.core.api.MapAssert<String,Object> variables()
          Enter into a chained map assert inspecting the variables currently available in the context of the case instance under test of this AbstractCaseAssert.
protected  Map<String,Object> 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

AbstractCaseAssert

protected AbstractCaseAssert(org.camunda.bpm.engine.ProcessEngine engine,
                             A actual,
                             Class<?> selfType)
Method Detail

getActual

public A getActual()
Delivers the the actual object under test.

Overrides:
getActual in class AbstractProcessAssert<S extends AbstractCaseAssert<S,A>,A extends org.camunda.bpm.engine.runtime.CaseExecution>

isAvailable

protected S isAvailable()
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

Returns:
this

isEnabled

protected S isEnabled()
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

Returns:
this

isDisabled

protected S isDisabled()
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

Returns:
this

isActive

protected S isActive()
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

Returns:
this

isSuspended

protected S isSuspended()
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

Returns:
this

isCompleted

protected S isCompleted()
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

Returns:
this

isClosed

protected S isClosed()
Verifies the expectation that the CaseExecution is 'closed'. Change visibility to public for those inheriting classes for whose underlying objects under test this status makes sense

Returns:
this

isFailed

protected S isFailed()
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

Returns:
this

isTerminated

protected S isTerminated()
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

Returns:
this

isCaseInstance

protected CaseInstanceAssert isCaseInstance()
Verifies the expectation that the CaseExecution is the 'case' instance. Change visibility to public for those inheriting classes for whose underlying objects under test this assertion makes sense

Returns:
this

isStage

protected StageAssert isStage()
Verifies the expectation that the CaseExecution is a 'stage' Change visibility to public for those inheriting classes for whose underlying objects under test this assertion makes sense

Returns:
this

isHumanTask

protected HumanTaskAssert isHumanTask()
Verifies the expectation that the CaseExecution is a 'humanTask' Change visibility to public for those inheriting classes for whose underlying objects under test this assertion makes sense

Returns:
this

isProcessTask

protected ProcessTaskAssert isProcessTask()
Verifies the expectation that the CaseExecution is a 'processTask' Change visibility to public for those inheriting classes for whose underlying objects under test this assertion makes sense

Returns:
this

isCaseTask

protected CaseTaskAssert isCaseTask()
Verifies the expectation that the CaseExecution is a 'caseTask' Change visibility to public for those inheriting classes for whose underlying objects under test this assertion makes sense

Returns:
this

isMilestone

protected MilestoneAssert isMilestone()
Verifies the expectation that the CaseExecution is a 'milestone' Change visibility to public for those inheriting classes for whose underlying objects under test this assertion makes sense

Returns:
this

caseExecution

protected CaseExecutionAssert caseExecution(org.camunda.bpm.engine.runtime.CaseExecutionQuery query)
Retrieve a child CaseExecution 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.

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.
Returns:
the only CaseExecution resulting from the given search. A 'null' CaseExecution in case no such CaseExecution is available.
Throws:
org.camunda.bpm.engine.ProcessEngineException - in case more than one CaseExecution is delivered by the query (after being narrowed to the actual 'parent' CaseExecution)
See Also:
to find grandchilds and other descendants, too.

descendantCaseExecution

protected CaseExecutionAssert descendantCaseExecution(org.camunda.bpm.engine.runtime.CaseExecutionQuery query)
Retrieve any descendant CaseExecution currently available in the context of the actual caseInstance under test of this AbstractCaseAssert. The query is automatically narrowed down to the actual caseExecution under test of this assertion.

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.
Returns:
the only CaseExecution resulting from the given search. A 'null' CaseExecution in case no such CaseExecution is available.
Throws:
org.camunda.bpm.engine.ProcessEngineException - in case more than one CaseExecution is delivered by the query (after being narrowed to the actual 'parent' CaseExecution)
See Also:
to find only children of this {@link CaseExecution}

caseExecution

protected CaseExecutionAssert caseExecution(String activityId)
Retrieve a chained CaseExecution 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.

Parameters:
activityId - activity id further narrowing down the search for caseExecutions. The query is automatically narrowed down to the actual 'parent' CaseExecution under test of this assertion.
Returns:
the only CaseExecution with the given activity id. A 'null' CaseExecution in case no such CaseExecution is available.
Throws:
org.camunda.bpm.engine.ProcessEngineException - in case more than one CaseExecution is delivered by the query (after being narrowed to the actual 'parent' CaseExecution)

caseExecution

protected CaseExecutionAssert caseExecution()
Retrieve a chained CaseExecution 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.

Returns:
the only CaseExecution existing in the context of this case execution. A 'null' CaseExecution in case no such CaseExecution is available.
Throws:
org.camunda.bpm.engine.ProcessEngineException - in case more than one CaseExecution is delivered by the query (after being narrowed to the actual 'parent' CaseExecution)

humanTask

protected 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. 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

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.
Throws:
org.camunda.bpm.engine.ProcessEngineException - in case more than one CaseExecution is delivered by the query (after being narrowed to the actual 'parent' CaseExecution)

humanTask

protected 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. 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

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.
Throws:
org.camunda.bpm.engine.ProcessEngineException - in case more than one CaseExecution is delivered by the query (after being narrowed to the actual 'parent' CaseExecution)

humanTask

protected 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. 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

Returns:
the only CaseExecution existing in the context of this case execution. A 'null' CaseExecution in case no such CaseExecution is available.
Throws:
org.camunda.bpm.engine.ProcessEngineException - in case more than one CaseExecution is delivered by the query (after being narrowed to the actual 'parent' CaseExecution)

caseTask

protected 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. 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

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.
Throws:
org.camunda.bpm.engine.ProcessEngineException - in case more than one CaseExecution is delivered by the query (after being narrowed to the actual 'parent' CaseExecution)

caseTask

protected 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. 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

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.
Throws:
org.camunda.bpm.engine.ProcessEngineException - in case more than one CaseExecution is delivered by the query (after being narrowed to the actual 'parent' CaseExecution)

caseTask

protected 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. The query is automatically narrowed down to the actual caseExecution under test of this assertion as well as to the type 'caseTask'.

Returns:
the only CaseExecution existing in the context of this case execution. A 'null' CaseExecution in case no such CaseExecution is available.
Throws:
org.camunda.bpm.engine.ProcessEngineException - in case more than one CaseExecution is delivered by the query (after being narrowed to the actual 'parent' CaseExecution)

processTask

protected 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. 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

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.
Throws:
org.camunda.bpm.engine.ProcessEngineException - in case more than one CaseExecution is delivered by the query (after being narrowed to the actual 'parent' CaseExecution)

processTask

protected 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. 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

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.
Throws:
org.camunda.bpm.engine.ProcessEngineException - in case more than one CaseExecution is delivered by the query (after being narrowed to the actual 'parent' CaseExecution)

processTask

protected 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. The query is automatically narrowed down to the actual caseExecution under test of this assertion as well as to the type 'processTask'.

Returns:
the only CaseExecution existing in the context of this case execution. A 'null' CaseExecution in case no such CaseExecution is available.
Throws:
org.camunda.bpm.engine.ProcessEngineException - in case more than one CaseExecution is delivered by the query (after being narrowed to the actual 'parent' CaseExecution)

stage

protected 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. 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

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.
Throws:
org.camunda.bpm.engine.ProcessEngineException - in case more than one CaseExecution is delivered by the query (after being narrowed to the actual 'parent' CaseExecution)

stage

protected 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. 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

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.
Throws:
org.camunda.bpm.engine.ProcessEngineException - in case more than one CaseExecution is delivered by the query (after being narrowed to the actual 'parent' CaseExecution)

stage

protected 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. The query is automatically narrowed down to the actual caseExecution under test of this assertion as well as to the type 'stage'.

Returns:
the only CaseExecution existing in the context of this case execution. A 'null' CaseExecution in case no such CaseExecution is available.
Throws:
org.camunda.bpm.engine.ProcessEngineException - in case more than one CaseExecution is delivered by the query (after being narrowed to the actual 'parent' CaseExecution)

milestone

protected 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. 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

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.
Throws:
org.camunda.bpm.engine.ProcessEngineException - in case more than one CaseExecution is delivered by the query (after being narrowed to the actual 'parent' CaseExecution)

milestone

protected 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. 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

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.
Throws:
org.camunda.bpm.engine.ProcessEngineException - in case more than one CaseExecution is delivered by the query (after being narrowed to the actual 'parent' CaseExecution)

milestone

protected 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. The query is automatically narrowed down to the actual caseExecution under test of this assertion as well as to the type 'milestone'.

Returns:
the only CaseExecution existing in the context of this case execution. A 'null' CaseExecution in case no such CaseExecution is available.
Throws:
org.camunda.bpm.engine.ProcessEngineException - in case more than one CaseExecution is delivered by the query (after being narrowed to the actual 'parent' CaseExecution)

getCurrent

protected A getCurrent()
Retrieve refreshed status of object under test from runtime database

Specified by:
getCurrent in class AbstractProcessAssert<S extends AbstractCaseAssert<S,A>,A extends org.camunda.bpm.engine.runtime.CaseExecution>

getHistoric

protected org.camunda.bpm.engine.history.HistoricCaseActivityInstance getHistoric()
Retrieve HistoricCaseActivityInstance for object under test from history database


caseExecutionQuery

protected org.camunda.bpm.engine.runtime.CaseExecutionQuery caseExecutionQuery()
CaseExecutionQuery, automatically narrowed to CaseInstance of actual CaseExecution

Overrides:
caseExecutionQuery in class AbstractProcessAssert<S extends AbstractCaseAssert<S,A>,A extends org.camunda.bpm.engine.runtime.CaseExecution>

historicCaseActivityInstanceQuery

protected org.camunda.bpm.engine.history.HistoricCaseActivityInstanceQuery historicCaseActivityInstanceQuery()
HistoricCaseActivityInstanceQuery, automatically narrowed to CaseInstance of actual CaseExecution

Overrides:
historicCaseActivityInstanceQuery in class AbstractProcessAssert<S extends AbstractCaseAssert<S,A>,A extends org.camunda.bpm.engine.runtime.CaseExecution>

toString

protected String toString(A caseExecution)
Specified by:
toString in class AbstractProcessAssert<S extends AbstractCaseAssert<S,A>,A extends org.camunda.bpm.engine.runtime.CaseExecution>

variables

protected org.assertj.core.api.MapAssert<String,Object> variables()
Enter into a chained map assert inspecting the variables currently available in the context of the case instance under test of this AbstractCaseAssert.

Returns:
MapAssert inspecting the case instance variables. Inspecting an empty map in case no such variables are available.

vars

protected Map<String,Object> vars()

hasVars

protected S hasVars(String[] names)


Copyright © 2016 camunda services GmbH. All rights reserved.