org.camunda.bpm.engine.test.assertions.cmmn
Class HumanTaskAssert

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<HumanTaskAssert,org.camunda.bpm.engine.runtime.CaseExecution>
              extended by org.camunda.bpm.engine.test.assertions.cmmn.HumanTaskAssert
All Implemented Interfaces:
org.assertj.core.api.Assert<HumanTaskAssert,org.camunda.bpm.engine.runtime.CaseExecution>, org.assertj.core.api.Descriptable<HumanTaskAssert>, org.assertj.core.api.ExtensionPoints<HumanTaskAssert,org.camunda.bpm.engine.runtime.CaseExecution>

public class HumanTaskAssert
extends AbstractCaseAssert<HumanTaskAssert,org.camunda.bpm.engine.runtime.CaseExecution>

Author:
Martin Schimak

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 HumanTaskAssert(org.camunda.bpm.engine.ProcessEngine engine, org.camunda.bpm.engine.runtime.CaseExecution actual)
           
 
Method Summary
protected static HumanTaskAssert assertThat(org.camunda.bpm.engine.ProcessEngine engine, org.camunda.bpm.engine.runtime.CaseExecution actual)
           
 HumanTaskAssert hasNoVariables()
          Verifies the expectation that the HumanTask holds no case variables at all.
 HumanTaskAssert hasVariables(String... names)
          Verifies the expectation that the HumanTask holds one or more case variables with the specified names.
 HumanTaskAssert isActive()
          Verifies the expectation that the HumanTask is in CaseExecutionState 'active'.
 HumanTaskAssert isAvailable()
          Verifies the expectation that the HumanTask is in CaseExecutionState 'available'.
 HumanTaskAssert isCompleted()
          Verifies the expectation that the HumanTask is in CaseExecutionState 'completed'.
 HumanTaskAssert isDisabled()
          Verifies the expectation that the HumanTask is in CaseExecutionState 'disabled'.
 HumanTaskAssert isEnabled()
          Verifies the expectation that the HumanTask is in CaseExecutionState 'enabled'.
 HumanTaskAssert isFailed()
          Verifies the expectation that the HumanTask is in CaseExecutionState 'failed'.
 HumanTaskAssert isSuspended()
          Verifies the expectation that the HumanTask is in CaseExecutionState 'suspended'.
 HumanTaskAssert isTerminated()
          Verifies the expectation that the HumanTask is in CaseExecutionState '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 HumanTaskAssert.
 
Methods inherited from class org.camunda.bpm.engine.test.assertions.cmmn.AbstractCaseAssert
caseExecution, caseExecution, caseExecution, caseExecutionQuery, caseTask, caseTask, caseTask, descendantCaseExecution, getActual, getCurrent, getHistoric, hasVars, historicCaseActivityInstanceQuery, humanTask, humanTask, humanTask, isCaseInstance, isCaseTask, isClosed, isHumanTask, isMilestone, isProcessTask, isStage, milestone, milestone, milestone, processTask, processTask, processTask, stage, stage, stage, toString, 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

HumanTaskAssert

protected HumanTaskAssert(org.camunda.bpm.engine.ProcessEngine engine,
                          org.camunda.bpm.engine.runtime.CaseExecution actual)
Method Detail

assertThat

protected static HumanTaskAssert assertThat(org.camunda.bpm.engine.ProcessEngine engine,
                                            org.camunda.bpm.engine.runtime.CaseExecution actual)

isAvailable

public HumanTaskAssert isAvailable()
Verifies the expectation that the HumanTask is in CaseExecutionState 'available'.

Overrides:
isAvailable in class AbstractCaseAssert<HumanTaskAssert,org.camunda.bpm.engine.runtime.CaseExecution>
Returns:
this HumanTaskAssert

isEnabled

public HumanTaskAssert isEnabled()
Verifies the expectation that the HumanTask is in CaseExecutionState 'enabled'.

Overrides:
isEnabled in class AbstractCaseAssert<HumanTaskAssert,org.camunda.bpm.engine.runtime.CaseExecution>
Returns:
this HumanTaskAssert

isDisabled

public HumanTaskAssert isDisabled()
Verifies the expectation that the HumanTask is in CaseExecutionState 'disabled'.

Overrides:
isDisabled in class AbstractCaseAssert<HumanTaskAssert,org.camunda.bpm.engine.runtime.CaseExecution>
Returns:
this HumanTaskAssert

isActive

public HumanTaskAssert isActive()
Verifies the expectation that the HumanTask is in CaseExecutionState 'active'.

Overrides:
isActive in class AbstractCaseAssert<HumanTaskAssert,org.camunda.bpm.engine.runtime.CaseExecution>
Returns:
this HumanTaskAssert

isSuspended

public HumanTaskAssert isSuspended()
Verifies the expectation that the HumanTask is in CaseExecutionState 'suspended'.

Overrides:
isSuspended in class AbstractCaseAssert<HumanTaskAssert,org.camunda.bpm.engine.runtime.CaseExecution>
Returns:
this HumanTaskAssert

isCompleted

public HumanTaskAssert isCompleted()
Verifies the expectation that the HumanTask is in CaseExecutionState 'completed'.

Overrides:
isCompleted in class AbstractCaseAssert<HumanTaskAssert,org.camunda.bpm.engine.runtime.CaseExecution>
Returns:
this HumanTaskAssert

isFailed

public HumanTaskAssert isFailed()
Verifies the expectation that the HumanTask is in CaseExecutionState 'failed'.

Overrides:
isFailed in class AbstractCaseAssert<HumanTaskAssert,org.camunda.bpm.engine.runtime.CaseExecution>
Returns:
this HumanTaskAssert

isTerminated

public HumanTaskAssert isTerminated()
Verifies the expectation that the HumanTask is in CaseExecutionState 'terminated'.

Overrides:
isTerminated in class AbstractCaseAssert<HumanTaskAssert,org.camunda.bpm.engine.runtime.CaseExecution>
Returns:
this HumanTaskAssert

hasNoVariables

public HumanTaskAssert hasNoVariables()
Verifies the expectation that the HumanTask holds no case variables at all.

Returns:
this AbstractCaseAssert

hasVariables

public HumanTaskAssert hasVariables(String... names)
Verifies the expectation that the HumanTask 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 HumanTaskAssert

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

Overrides:
variables in class AbstractCaseAssert<HumanTaskAssert,org.camunda.bpm.engine.runtime.CaseExecution>
Returns:
MapAssert inspecting the human task instance variables. Inspecting an empty map in case no such variables are available.


Copyright © 2016 camunda services GmbH. All rights reserved.