Class CaseTaskAssert
- 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<CaseTaskAssert,CaseExecution>
-
- org.camunda.bpm.engine.test.assertions.cmmn.CaseTaskAssert
-
- All Implemented Interfaces:
org.assertj.core.api.Assert<CaseTaskAssert,CaseExecution>
,org.assertj.core.api.Descriptable<CaseTaskAssert>
,org.assertj.core.api.ExtensionPoints<CaseTaskAssert,CaseExecution>
public class CaseTaskAssert extends AbstractCaseAssert<CaseTaskAssert,CaseExecution>
-
-
Field Summary
-
Fields inherited from class org.camunda.bpm.engine.test.assertions.bpmn.AbstractProcessAssert
engine
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CaseTaskAssert(ProcessEngine engine, CaseExecution actual)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static CaseTaskAssert
assertThat(ProcessEngine engine, CaseExecution actual)
CaseTaskAssert
hasNoVariables()
Verifies the expectation that theCaseTask
holds no case variables at all.CaseTaskAssert
hasVariables(java.lang.String... names)
Verifies the expectation that theCaseTask
holds one or more case variables with the specified names.CaseTaskAssert
isActive()
Verifies the expectation that theCaseTask
is inCaseExecutionState
'active'.CaseTaskAssert
isAvailable()
Verifies the expectation that theCaseTask
is inCaseExecutionState
'available'.CaseTaskAssert
isCompleted()
Verifies the expectation that theCaseTask
is inCaseExecutionState
'completed'.CaseTaskAssert
isDisabled()
Verifies the expectation that theCaseTask
is inCaseExecutionState
'disabled'.CaseTaskAssert
isEnabled()
Verifies the expectation that theCaseTask
is inCaseExecutionState
'enabled'.CaseTaskAssert
isTerminated()
Verifies the expectation that theCaseTask
is inCaseExecutionState
'terminated'.org.assertj.core.api.MapAssert<java.lang.String,java.lang.Object>
variables()
Enter into a chained map assert inspecting the variables currently available in the context of the case task instance under test of this CaseTaskAssert.-
Methods inherited from class org.camunda.bpm.engine.test.assertions.cmmn.AbstractCaseAssert
caseExecution, caseExecutionQuery, caseTask, caseTask, descendantCaseExecution, getActual, getCurrent, getHistoricState, hasVars, historicCaseActivityInstanceQuery, humanTask, humanTask, isCaseInstance, isCaseTask, isClosed, isHumanTask, isMilestone, isProcessTask, isStage, milestone, milestone, processTask, processTask, stage, stage, toString, vars
-
Methods inherited from class org.camunda.bpm.engine.test.assertions.bpmn.AbstractProcessAssert
caseDefinitionQuery, caseInstanceQuery, caseService, executionQuery, externalTaskQuery, externalTaskService, formService, getExistingCurrent, getLastAssert, historicActivityInstanceQuery, historicProcessInstanceQuery, historicVariableInstanceQuery, historyService, jobQuery, managementService, processDefinitionQuery, processInstanceQuery, repositoryService, resetLastAsserts, runtimeService, taskQuery, taskService
-
Methods inherited from class org.assertj.core.api.AbstractAssert
asInstanceOf, asList, assertionError, asString, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, doesNotHaveSameHashCodeAs, doesNotHaveToString, equals, extracting, extracting, failure, failureWithActualExpected, failWithActualExpectedAndMessage, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, inBinary, inHexadecimal, is, isElementOfCustomAssert, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isInstanceOfSatisfying, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, matches, matches, newListAssertInstance, overridingErrorMessage, overridingErrorMessage, satisfies, satisfies, satisfies, satisfiesAnyOf, satisfiesAnyOf, satisfiesAnyOfForProxy, satisfiesForProxy, setCustomRepresentation, setDescriptionConsumer, setPrintAssertionsDescription, throwAssertionError, usingComparator, usingComparator, usingDefaultComparator, usingRecursiveComparison, usingRecursiveComparison, withFailMessage, withFailMessage, withRepresentation, withThreadDumpOnError
-
-
-
-
Constructor Detail
-
CaseTaskAssert
protected CaseTaskAssert(ProcessEngine engine, CaseExecution actual)
-
-
Method Detail
-
assertThat
protected static CaseTaskAssert assertThat(ProcessEngine engine, CaseExecution actual)
-
isAvailable
public CaseTaskAssert isAvailable()
Verifies the expectation that theCaseTask
is inCaseExecutionState
'available'.- Overrides:
isAvailable
in classAbstractCaseAssert<CaseTaskAssert,CaseExecution>
- Returns:
- this
CaseTaskAssert
-
isEnabled
public CaseTaskAssert isEnabled()
Verifies the expectation that theCaseTask
is inCaseExecutionState
'enabled'.- Overrides:
isEnabled
in classAbstractCaseAssert<CaseTaskAssert,CaseExecution>
- Returns:
- this
CaseTaskAssert
-
isDisabled
public CaseTaskAssert isDisabled()
Verifies the expectation that theCaseTask
is inCaseExecutionState
'disabled'.- Overrides:
isDisabled
in classAbstractCaseAssert<CaseTaskAssert,CaseExecution>
- Returns:
- this
CaseTaskAssert
-
isActive
public CaseTaskAssert isActive()
Verifies the expectation that theCaseTask
is inCaseExecutionState
'active'.- Overrides:
isActive
in classAbstractCaseAssert<CaseTaskAssert,CaseExecution>
- Returns:
- this
CaseTaskAssert
-
isCompleted
public CaseTaskAssert isCompleted()
Verifies the expectation that theCaseTask
is inCaseExecutionState
'completed'.- Overrides:
isCompleted
in classAbstractCaseAssert<CaseTaskAssert,CaseExecution>
- Returns:
- this
CaseTaskAssert
-
isTerminated
public CaseTaskAssert isTerminated()
Verifies the expectation that theCaseTask
is inCaseExecutionState
'terminated'.- Overrides:
isTerminated
in classAbstractCaseAssert<CaseTaskAssert,CaseExecution>
- Returns:
- this
CaseTaskAssert
-
hasNoVariables
public CaseTaskAssert hasNoVariables()
Verifies the expectation that theCaseTask
holds no case variables at all.- Returns:
- this
CaseTaskAssert
-
hasVariables
public CaseTaskAssert hasVariables(java.lang.String... names)
Verifies the expectation that theCaseTask
holds one or more case variables with the specified names.- Parameters:
names
- the names of the case task variables expected to exist. In case no variable name is given, the existence of at least one variable will be verified.- Returns:
- this
CaseTaskAssert
-
variables
public org.assertj.core.api.MapAssert<java.lang.String,java.lang.Object> variables()
Enter into a chained map assert inspecting the variables currently available in the context of the case task instance under test of this CaseTaskAssert.- Overrides:
variables
in classAbstractCaseAssert<CaseTaskAssert,CaseExecution>
- Returns:
- MapAssert(String, Object) inspecting the case task instance variables. Inspecting an empty map in case no such variables are available.
-
-