Class HumanTaskAssert
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<HumanTaskAssert,CaseExecution>
org.camunda.bpm.engine.test.assertions.cmmn.HumanTaskAssert
- All Implemented Interfaces:
org.assertj.core.api.Assert<HumanTaskAssert,,CaseExecution> org.assertj.core.api.Descriptable<HumanTaskAssert>,org.assertj.core.api.ExtensionPoints<HumanTaskAssert,CaseExecution>
-
Field Summary
Fields inherited from class org.camunda.bpm.engine.test.assertions.bpmn.AbstractProcessAssert
engineFields inherited from class org.assertj.core.api.AbstractAssert
actual, info, myself, objects, throwUnsupportedExceptionOnEquals -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHumanTaskAssert(ProcessEngine engine, CaseExecution actual) -
Method Summary
Modifier and TypeMethodDescriptionprotected static HumanTaskAssertassertThat(ProcessEngine engine, CaseExecution actual) Verifies the expectation that theHumanTaskholds no case variables at all.hasVariables(String... names) Verifies the expectation that theHumanTaskholds one or more case variables with the specified names.isActive()Verifies the expectation that theHumanTaskis inCaseExecutionState'active'.Verifies the expectation that theHumanTaskis inCaseExecutionState'available'.Verifies the expectation that theHumanTaskis inCaseExecutionState'completed'.Verifies the expectation that theHumanTaskis inCaseExecutionState'disabled'.Verifies the expectation that theHumanTaskis inCaseExecutionState'enabled'.Verifies the expectation that theHumanTaskis inCaseExecutionState'terminated'.Enter into a chained map assert inspecting the variables currently available in the context of the human task instance under test of this HumanTaskAssert.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, varsMethods 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, taskServiceMethods inherited from class org.assertj.core.api.AbstractAssert
areEqual, asInstanceOf, asList, assertionError, asString, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, doesNotHaveSameHashCodeAs, doesNotHaveToString, doesNotHaveToString, equals, extracting, extracting, failure, failureWithActualExpected, failWithActualExpectedAndMessage, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, 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, usingRecursiveAssertion, usingRecursiveAssertion, usingRecursiveComparison, usingRecursiveComparison, withFailMessage, withFailMessage, withRepresentation, withThreadDumpOnErrorMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.assertj.core.api.Descriptable
as, as, as, describedAs, describedAs
-
Constructor Details
-
HumanTaskAssert
-
-
Method Details
-
assertThat
-
isAvailable
Verifies the expectation that theHumanTaskis inCaseExecutionState'available'.- Overrides:
isAvailablein classAbstractCaseAssert<HumanTaskAssert,CaseExecution> - Returns:
- this
HumanTaskAssert
-
isEnabled
Verifies the expectation that theHumanTaskis inCaseExecutionState'enabled'.- Overrides:
isEnabledin classAbstractCaseAssert<HumanTaskAssert,CaseExecution> - Returns:
- this
HumanTaskAssert
-
isDisabled
Verifies the expectation that theHumanTaskis inCaseExecutionState'disabled'.- Overrides:
isDisabledin classAbstractCaseAssert<HumanTaskAssert,CaseExecution> - Returns:
- this
HumanTaskAssert
-
isActive
Verifies the expectation that theHumanTaskis inCaseExecutionState'active'.- Overrides:
isActivein classAbstractCaseAssert<HumanTaskAssert,CaseExecution> - Returns:
- this
HumanTaskAssert
-
isCompleted
Verifies the expectation that theHumanTaskis inCaseExecutionState'completed'.- Overrides:
isCompletedin classAbstractCaseAssert<HumanTaskAssert,CaseExecution> - Returns:
- this
HumanTaskAssert
-
isTerminated
Verifies the expectation that theHumanTaskis inCaseExecutionState'terminated'.- Overrides:
isTerminatedin classAbstractCaseAssert<HumanTaskAssert,CaseExecution> - Returns:
- this
HumanTaskAssert
-
hasNoVariables
Verifies the expectation that theHumanTaskholds no case variables at all.- Returns:
- this
AbstractCaseAssert
-
hasVariables
Verifies the expectation that theHumanTaskholds 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
HumanTaskAssert
-
variables
Enter into a chained map assert inspecting the variables currently available in the context of the human task instance under test of this HumanTaskAssert.- Overrides:
variablesin classAbstractCaseAssert<HumanTaskAssert,CaseExecution> - Returns:
- MapAssert(String, Object) inspecting the human task instance variables. Inspecting an empty map in case no such variables are available.
-