Class ProcessTaskAssert
- 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<ProcessTaskAssert,CaseExecution>
-
- org.camunda.bpm.engine.test.assertions.cmmn.ProcessTaskAssert
-
- All Implemented Interfaces:
org.assertj.core.api.Assert<ProcessTaskAssert,CaseExecution>
,org.assertj.core.api.Descriptable<ProcessTaskAssert>
,org.assertj.core.api.ExtensionPoints<ProcessTaskAssert,CaseExecution>
public class ProcessTaskAssert extends AbstractCaseAssert<ProcessTaskAssert,CaseExecution>
-
-
Field Summary
-
Fields inherited from class org.camunda.bpm.engine.test.assertions.bpmn.AbstractProcessAssert
engine
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ProcessTaskAssert(ProcessEngine engine, CaseExecution actual)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static ProcessTaskAssert
assertThat(ProcessEngine engine, CaseExecution actual)
ProcessTaskAssert
hasNoVariables()
Verifies the expectation that theProcessTask
holds no case variables at all.ProcessTaskAssert
hasVariables(String... names)
Verifies the expectation that theProcessTask
holds one or more case variables with the specified names.ProcessTaskAssert
isActive()
Verifies the expectation that theProcessTask
is inCaseExecutionState
'active'.ProcessTaskAssert
isAvailable()
Verifies the expectation that theProcessTask
is inCaseExecutionState
'available'.ProcessTaskAssert
isCompleted()
Verifies the expectation that theProcessTask
is inCaseExecutionState
'completed'.ProcessTaskAssert
isDisabled()
Verifies the expectation that theProcessTask
is inCaseExecutionState
'disabled'.ProcessTaskAssert
isEnabled()
Verifies the expectation that theProcessTask
is inCaseExecutionState
'enabled'.ProcessTaskAssert
isTerminated()
Verifies the expectation that theProcessTask
is inCaseExecutionState
'terminated'.org.assertj.core.api.MapAssert<String,Object>
variables()
Enter into a chained map assert inspecting the variables currently available in the context of the human task instance under test of this ProcessTaskAssert.-
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
-
ProcessTaskAssert
protected ProcessTaskAssert(ProcessEngine engine, CaseExecution actual)
-
-
Method Detail
-
assertThat
protected static ProcessTaskAssert assertThat(ProcessEngine engine, CaseExecution actual)
-
isAvailable
public ProcessTaskAssert isAvailable()
Verifies the expectation that theProcessTask
is inCaseExecutionState
'available'.- Overrides:
isAvailable
in classAbstractCaseAssert<ProcessTaskAssert,CaseExecution>
- Returns:
- this
ProcessTaskAssert
-
isEnabled
public ProcessTaskAssert isEnabled()
Verifies the expectation that theProcessTask
is inCaseExecutionState
'enabled'.- Overrides:
isEnabled
in classAbstractCaseAssert<ProcessTaskAssert,CaseExecution>
- Returns:
- this
ProcessTaskAssert
-
isDisabled
public ProcessTaskAssert isDisabled()
Verifies the expectation that theProcessTask
is inCaseExecutionState
'disabled'.- Overrides:
isDisabled
in classAbstractCaseAssert<ProcessTaskAssert,CaseExecution>
- Returns:
- this
ProcessTaskAssert
-
isActive
public ProcessTaskAssert isActive()
Verifies the expectation that theProcessTask
is inCaseExecutionState
'active'.- Overrides:
isActive
in classAbstractCaseAssert<ProcessTaskAssert,CaseExecution>
- Returns:
- this
ProcessTaskAssert
-
isCompleted
public ProcessTaskAssert isCompleted()
Verifies the expectation that theProcessTask
is inCaseExecutionState
'completed'.- Overrides:
isCompleted
in classAbstractCaseAssert<ProcessTaskAssert,CaseExecution>
- Returns:
- this
ProcessTaskAssert
-
isTerminated
public ProcessTaskAssert isTerminated()
Verifies the expectation that theProcessTask
is inCaseExecutionState
'terminated'.- Overrides:
isTerminated
in classAbstractCaseAssert<ProcessTaskAssert,CaseExecution>
- Returns:
- this
ProcessTaskAssert
-
hasNoVariables
public ProcessTaskAssert hasNoVariables()
Verifies the expectation that theProcessTask
holds no case variables at all.- Returns:
- this
AbstractCaseAssert
-
hasVariables
public ProcessTaskAssert hasVariables(String... names)
Verifies the expectation that theProcessTask
holds one or more case variables with the specified names.- Parameters:
names
- the names of the human task variables expected to exist. In case no variable name is given, the existence of at least one variable will be verified.- Returns:
- this
ProcessTaskAssert
-
variables
public org.assertj.core.api.MapAssert<String,Object> variables()
Enter into a chained map assert inspecting the variables currently available in the context of the human task instance under test of this ProcessTaskAssert.- Overrides:
variables
in classAbstractCaseAssert<ProcessTaskAssert,CaseExecution>
- Returns:
- MapAssert(String, Object) inspecting the human task instance variables. Inspecting an empty map in case no such variables are available.
-
-