public abstract class AbstractCaseAssert<S extends AbstractCaseAssert<S,A>,A extends org.camunda.bpm.engine.runtime.CaseExecution> extends AbstractProcessAssert<S,A>
engine| Modifier | Constructor and Description |
|---|---|
protected |
AbstractCaseAssert(org.camunda.bpm.engine.ProcessEngine engine,
A actual,
Class<?> selfType) |
| Modifier and Type | Method and Description |
|---|---|
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() |
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, variableInstanceQueryas, as, asList, asString, describedAs, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, equals, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasToString, inBinary, inHexadecimal, is, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, overridingErrorMessage, setCustomRepresentation, usingComparator, usingDefaultComparator, withFailMessage, withRepresentation, withThreadDumpOnErrorpublic A getActual()
getActual in class AbstractProcessAssert<S extends AbstractCaseAssert<S,A>,A extends org.camunda.bpm.engine.runtime.CaseExecution>protected S isAvailable()
CaseExecution is 'available'.
Change visibility to public for those inheriting classes for whose
underlying objects under test this status makes senseprotected S isEnabled()
CaseExecution is 'enabled'.
Change visibility to public for those inheriting classes for whose
underlying objects under test this status makes senseprotected S isDisabled()
CaseExecution is 'disabled'.
Change visibility to public for those inheriting classes for whose
underlying objects under test this status makes senseprotected S isActive()
CaseExecution is 'active'.
Change visibility to public for those inheriting classes for whose
underlying objects under test this status makes senseprotected S isSuspended()
CaseExecution is 'suspended'.
Change visibility to public for those inheriting classes for whose
underlying objects under test this status makes senseprotected S isCompleted()
CaseExecution is 'completed'.
Change visibility to public for those inheriting classes for whose
underlying objects under test this status makes senseprotected S isClosed()
CaseExecution is 'closed'.
Change visibility to public for those inheriting classes for whose
underlying objects under test this status makes senseprotected S isFailed()
CaseExecution is 'failed'.
Change visibility to public for those inheriting classes for whose
underlying objects under test this status makes senseprotected S isTerminated()
CaseExecution is 'terminated'.
Change visibility to public for those inheriting classes for whose
underlying objects under test this status makes senseprotected CaseInstanceAssert isCaseInstance()
CaseExecution is the
'case' instance.
Change visibility to public for those inheriting classes for whose
underlying objects under test this assertion makes senseprotected StageAssert isStage()
CaseExecution is a 'stage'
Change visibility to public for those inheriting classes for whose
underlying objects under test this assertion makes senseprotected HumanTaskAssert isHumanTask()
CaseExecution is a 'humanTask'
Change visibility to public for those inheriting classes for whose
underlying objects under test this assertion makes senseprotected ProcessTaskAssert isProcessTask()
CaseExecution is a 'processTask'
Change visibility to public for those inheriting classes for whose
underlying objects under test this assertion makes senseprotected CaseTaskAssert isCaseTask()
CaseExecution is a 'caseTask'
Change visibility to public for those inheriting classes for whose
underlying objects under test this assertion makes senseprotected MilestoneAssert isMilestone()
CaseExecution is a 'milestone'
Change visibility to public for those inheriting classes for whose
underlying objects under test this assertion makes senseprotected CaseExecutionAssert caseExecution(org.camunda.bpm.engine.runtime.CaseExecutionQuery query)
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.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.org.camunda.bpm.engine.ProcessEngineException - in case more than
one CaseExecution is delivered by the query (after being narrowed
to the actual 'parent' CaseExecution)to find grandchilds and other descendants, too.protected CaseExecutionAssert descendantCaseExecution(org.camunda.bpm.engine.runtime.CaseExecutionQuery query)
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.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.org.camunda.bpm.engine.ProcessEngineException - in case more than
one CaseExecution is delivered by the query (after being narrowed
to the actual 'parent' CaseExecution)to find only children of this {@link CaseExecution}protected CaseExecutionAssert caseExecution(String activityId)
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.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.org.camunda.bpm.engine.ProcessEngineException - in case more than
one CaseExecution is delivered by the query (after being narrowed
to the actual 'parent' CaseExecution)protected CaseExecutionAssert caseExecution()
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.org.camunda.bpm.engine.ProcessEngineException - in case more than
one CaseExecution is delivered by the query (after being narrowed
to the actual 'parent' CaseExecution)protected HumanTaskAssert humanTask(org.camunda.bpm.engine.runtime.CaseExecutionQuery query)
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 sensequery - 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'.org.camunda.bpm.engine.ProcessEngineException - in case more than
one CaseExecution is delivered by the query (after being narrowed
to the actual 'parent' CaseExecution)protected HumanTaskAssert humanTask(String activityId)
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 senseactivityId - 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'.org.camunda.bpm.engine.ProcessEngineException - in case more than
one CaseExecution is delivered by the query (after being narrowed
to the actual 'parent' CaseExecution)protected HumanTaskAssert humanTask()
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 senseorg.camunda.bpm.engine.ProcessEngineException - in case more than
one CaseExecution is delivered by the query (after being narrowed
to the actual 'parent' CaseExecution)protected CaseTaskAssert caseTask(org.camunda.bpm.engine.runtime.CaseExecutionQuery query)
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 sensequery - 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'.org.camunda.bpm.engine.ProcessEngineException - in case more than
one CaseExecution is delivered by the query (after being narrowed
to the actual 'parent' CaseExecution)protected CaseTaskAssert caseTask(String activityId)
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 senseactivityId - 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'.org.camunda.bpm.engine.ProcessEngineException - in case more than
one CaseExecution is delivered by the query (after being narrowed
to the actual 'parent' CaseExecution)protected CaseTaskAssert caseTask()
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'.org.camunda.bpm.engine.ProcessEngineException - in case more than
one CaseExecution is delivered by the query (after being narrowed
to the actual 'parent' CaseExecution)protected ProcessTaskAssert processTask(org.camunda.bpm.engine.runtime.CaseExecutionQuery query)
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 sensequery - 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'.org.camunda.bpm.engine.ProcessEngineException - in case more than
one CaseExecution is delivered by the query (after being narrowed
to the actual 'parent' CaseExecution)protected ProcessTaskAssert processTask(String activityId)
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 senseactivityId - 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'.org.camunda.bpm.engine.ProcessEngineException - in case more than
one CaseExecution is delivered by the query (after being narrowed
to the actual 'parent' CaseExecution)protected ProcessTaskAssert processTask()
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'.org.camunda.bpm.engine.ProcessEngineException - in case more than
one CaseExecution is delivered by the query (after being narrowed
to the actual 'parent' CaseExecution)protected StageAssert stage(org.camunda.bpm.engine.runtime.CaseExecutionQuery query)
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 sensequery - 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'.org.camunda.bpm.engine.ProcessEngineException - in case more than
one CaseExecution is delivered by the query (after being narrowed
to the actual 'parent' CaseExecution)protected StageAssert stage(String activityId)
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 senseactivityId - 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'.org.camunda.bpm.engine.ProcessEngineException - in case more than
one CaseExecution is delivered by the query (after being narrowed
to the actual 'parent' CaseExecution)protected StageAssert stage()
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'.org.camunda.bpm.engine.ProcessEngineException - in case more than
one CaseExecution is delivered by the query (after being narrowed
to the actual 'parent' CaseExecution)protected MilestoneAssert milestone(org.camunda.bpm.engine.runtime.CaseExecutionQuery query)
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 sensequery - 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'.org.camunda.bpm.engine.ProcessEngineException - in case more than
one CaseExecution is delivered by the query (after being narrowed
to the actual 'parent' CaseExecution)protected MilestoneAssert milestone(String activityId)
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 senseactivityId - 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'.org.camunda.bpm.engine.ProcessEngineException - in case more than
one CaseExecution is delivered by the query (after being narrowed
to the actual 'parent' CaseExecution)protected MilestoneAssert milestone()
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'.org.camunda.bpm.engine.ProcessEngineException - in case more than
one CaseExecution is delivered by the query (after being narrowed
to the actual 'parent' CaseExecution)protected A getCurrent()
getCurrent in class AbstractProcessAssert<S extends AbstractCaseAssert<S,A>,A extends org.camunda.bpm.engine.runtime.CaseExecution>protected org.camunda.bpm.engine.history.HistoricCaseActivityInstance getHistoric()
protected org.camunda.bpm.engine.runtime.CaseExecutionQuery caseExecutionQuery()
CaseInstance of actual CaseExecutioncaseExecutionQuery in class AbstractProcessAssert<S extends AbstractCaseAssert<S,A>,A extends org.camunda.bpm.engine.runtime.CaseExecution>protected org.camunda.bpm.engine.history.HistoricCaseActivityInstanceQuery historicCaseActivityInstanceQuery()
CaseInstance of actual CaseExecutionhistoricCaseActivityInstanceQuery in class AbstractProcessAssert<S extends AbstractCaseAssert<S,A>,A extends org.camunda.bpm.engine.runtime.CaseExecution>protected String toString(A caseExecution)
toString in class AbstractProcessAssert<S extends AbstractCaseAssert<S,A>,A extends org.camunda.bpm.engine.runtime.CaseExecution>protected org.assertj.core.api.MapAssert<String,Object> variables()
Copyright © 2019 Camunda Services GmbH. All rights reserved.