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

public class CaseTaskAssert extends AbstractCaseAssert<CaseTaskAssert,org.camunda.bpm.engine.runtime.CaseExecution>
  • Constructor Details

    • CaseTaskAssert

      protected CaseTaskAssert(org.camunda.bpm.engine.ProcessEngine engine, org.camunda.bpm.engine.runtime.CaseExecution actual)
  • Method Details

    • assertThat

      protected static CaseTaskAssert assertThat(org.camunda.bpm.engine.ProcessEngine engine, org.camunda.bpm.engine.runtime.CaseExecution actual)
    • isAvailable

      public CaseTaskAssert isAvailable()
      Verifies the expectation that the CaseTask is in CaseExecutionState 'available'.
      Overrides:
      isAvailable in class AbstractCaseAssert<CaseTaskAssert,org.camunda.bpm.engine.runtime.CaseExecution>
      Returns:
      this CaseTaskAssert
    • isEnabled

      public CaseTaskAssert isEnabled()
      Verifies the expectation that the CaseTask is in CaseExecutionState 'enabled'.
      Overrides:
      isEnabled in class AbstractCaseAssert<CaseTaskAssert,org.camunda.bpm.engine.runtime.CaseExecution>
      Returns:
      this CaseTaskAssert
    • isDisabled

      public CaseTaskAssert isDisabled()
      Verifies the expectation that the CaseTask is in CaseExecutionState 'disabled'.
      Overrides:
      isDisabled in class AbstractCaseAssert<CaseTaskAssert,org.camunda.bpm.engine.runtime.CaseExecution>
      Returns:
      this CaseTaskAssert
    • isActive

      public CaseTaskAssert isActive()
      Verifies the expectation that the CaseTask is in CaseExecutionState 'active'.
      Overrides:
      isActive in class AbstractCaseAssert<CaseTaskAssert,org.camunda.bpm.engine.runtime.CaseExecution>
      Returns:
      this CaseTaskAssert
    • isCompleted

      public CaseTaskAssert isCompleted()
      Verifies the expectation that the CaseTask is in CaseExecutionState 'completed'.
      Overrides:
      isCompleted in class AbstractCaseAssert<CaseTaskAssert,org.camunda.bpm.engine.runtime.CaseExecution>
      Returns:
      this CaseTaskAssert
    • isTerminated

      public CaseTaskAssert isTerminated()
      Verifies the expectation that the CaseTask is in CaseExecutionState 'terminated'.
      Overrides:
      isTerminated in class AbstractCaseAssert<CaseTaskAssert,org.camunda.bpm.engine.runtime.CaseExecution>
      Returns:
      this CaseTaskAssert
    • hasNoVariables

      public CaseTaskAssert hasNoVariables()
      Verifies the expectation that the CaseTask holds no case variables at all.
      Returns:
      this CaseTaskAssert
    • hasVariables

      public CaseTaskAssert hasVariables(String... names)
      Verifies the expectation that the CaseTask 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<String,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 class AbstractCaseAssert<CaseTaskAssert,org.camunda.bpm.engine.runtime.CaseExecution>
      Returns:
      MapAssert(String, Object) inspecting the case task instance variables. Inspecting an empty map in case no such variables are available.