Class CaseInstanceAssert

All Implemented Interfaces:
org.assertj.core.api.Assert<CaseInstanceAssert,CaseInstance>, org.assertj.core.api.Descriptable<CaseInstanceAssert>, org.assertj.core.api.ExtensionPoints<CaseInstanceAssert,CaseInstance>

public class CaseInstanceAssert extends AbstractCaseAssert<CaseInstanceAssert,CaseInstance>
  • Constructor Details

  • Method Details

    • assertThat

      protected static CaseInstanceAssert assertThat(ProcessEngine engine, CaseInstance actual)
    • isActive

      public CaseInstanceAssert isActive()
      Description copied from class: AbstractCaseAssert
      Verifies the expectation that the CaseExecution is 'active'. Change visibility to public for those inheriting classes for whose underlying objects under test this status makes sense
      Overrides:
      isActive in class AbstractCaseAssert<CaseInstanceAssert,CaseInstance>
      Returns:
      this
    • isCompleted

      public CaseInstanceAssert isCompleted()
      Description copied from class: AbstractCaseAssert
      Verifies the expectation that the CaseExecution is 'completed'. Change visibility to public for those inheriting classes for whose underlying objects under test this status makes sense
      Overrides:
      isCompleted in class AbstractCaseAssert<CaseInstanceAssert,CaseInstance>
      Returns:
      this
    • isClosed

      public CaseInstanceAssert isClosed()
      Description copied from class: AbstractCaseAssert
      Verifies the expectation that the CaseExecution is 'closed'. Change visibility to public for those inheriting classes for whose underlying objects under test this status makes sense
      Overrides:
      isClosed in class AbstractCaseAssert<CaseInstanceAssert,CaseInstance>
      Returns:
      this
    • isTerminated

      public CaseInstanceAssert isTerminated()
      Description copied from class: AbstractCaseAssert
      Verifies the expectation that the CaseExecution is 'terminated'. Change visibility to public for those inheriting classes for whose underlying objects under test this status makes sense
      Overrides:
      isTerminated in class AbstractCaseAssert<CaseInstanceAssert,CaseInstance>
      Returns:
      this
    • humanTask

      public HumanTaskAssert humanTask(CaseExecutionQuery query)
      Description copied from class: AbstractCaseAssert
      Enter into a chained HumanTaskAssert inspecting the one and mostly one 'humanTask' currently available in the context of the actual caseExecution under test of this AbstractCaseAssert. The query is automatically narrowed down to the actual caseExecution under test of this assertion as well as to the type 'humanTask'. Change visibility to public for those inheriting classes for whose underlying objects under test this method makes sense
      Overrides:
      humanTask in class AbstractCaseAssert<CaseInstanceAssert,CaseInstance>
      Parameters:
      query - CaseExecutionQuery further narrowing down the search for caseExecutions. The query is automatically narrowed down to the actual 'parent' CaseExecution under test of this assertion as well as to the type 'humanTask'.
      Returns:
      the only CaseExecution resulting from the given search. A 'null' CaseExecution in case no such CaseExecution is available.
    • humanTask

      public HumanTaskAssert humanTask(String activityId)
      Description copied from class: AbstractCaseAssert
      Enter into a chained HumanTaskAssert inspecting the one and mostly one 'humanTask' currently available in the context of the actual caseExecution under test of this AbstractCaseAssert. The query is automatically narrowed down to the actual caseExecution under test of this assertion as well as to the type 'humanTask'. Change visibility to public for those inheriting classes for whose underlying objects under test this method makes sense
      Overrides:
      humanTask in class AbstractCaseAssert<CaseInstanceAssert,CaseInstance>
      Parameters:
      activityId - activity if further narrowing down the search for caseExecutions. The query is automatically narrowed down to the actual 'parent' CaseExecution under test of this assertion as well as to the type 'humanTask'.
      Returns:
      the only CaseExecution with the given activitiy id. A 'null' CaseExecution in case no such CaseExecution is available.
    • caseTask

      public CaseTaskAssert caseTask(CaseExecutionQuery query)
      Description copied from class: AbstractCaseAssert
      Enter into a chained CaseTaskAssert inspecting the one and mostly one 'caseTask' currently available in the context of the actual caseExecution under test of this AbstractCaseAssert. The query is automatically narrowed down to the actual caseExecution under test of this assertion as well as to the type 'caseTask'. Change visibility to public for those inheriting classes for whose underlying objects under test this method makes sense
      Overrides:
      caseTask in class AbstractCaseAssert<CaseInstanceAssert,CaseInstance>
      Parameters:
      query - CaseExecutionQuery further narrowing down the search for caseExecutions. The query is automatically narrowed down to the actual 'parent' CaseExecution under test of this assertion as well as to the type 'caseTask'.
      Returns:
      the only CaseExecution resulting from the given search. A 'null' CaseExecution in case no such CaseExecution is available.
    • caseTask

      public CaseTaskAssert caseTask(String activityId)
      Description copied from class: AbstractCaseAssert
      Enter into a chained CaseTaskAssert inspecting the one and mostly one 'caseTask' currently available in the context of the actual caseExecution under test of this AbstractCaseAssert. The query is automatically narrowed down to the actual caseExecution under test of this assertion as well as to the type 'caseTask'. Change visibility to public for those inheriting classes for whose underlying objects under test this method makes sense
      Overrides:
      caseTask in class AbstractCaseAssert<CaseInstanceAssert,CaseInstance>
      Parameters:
      activityId - activity if further narrowing down the search for caseExecutions. The query is automatically narrowed down to the actual 'parent' CaseExecution under test of this assertion as well as to the type 'caseTask'.
      Returns:
      the only CaseExecution with the given activitiy id. A 'null' CaseExecution in case no such CaseExecution is available.
    • processTask

      public ProcessTaskAssert processTask(CaseExecutionQuery query)
      Description copied from class: AbstractCaseAssert
      Enter into a chained ProcessTaskAssert inspecting the one and mostly one 'processTask' currently available in the context of the actual caseExecution under test of this AbstractCaseAssert. The query is automatically narrowed down to the actual caseExecution under test of this assertion as well as to the type 'processTask'. Change visibility to public for those inheriting classes for whose underlying objects under test this method makes sense
      Overrides:
      processTask in class AbstractCaseAssert<CaseInstanceAssert,CaseInstance>
      Parameters:
      query - CaseExecutionQuery further narrowing down the search for caseExecutions. The query is automatically narrowed down to the actual 'parent' CaseExecution under test of this assertion as well as to the type 'processTask'.
      Returns:
      the only CaseExecution resulting from the given search. A 'null' CaseExecution in case no such CaseExecution is available.
    • processTask

      public ProcessTaskAssert processTask(String activityId)
      Description copied from class: AbstractCaseAssert
      Enter into a chained ProcessTaskAssert inspecting the one and mostly one 'processTask' currently available in the context of the actual caseExecution under test of this AbstractCaseAssert. The query is automatically narrowed down to the actual caseExecution under test of this assertion as well as to the type 'processTask'. Change visibility to public for those inheriting classes for whose underlying objects under test this method makes sense
      Overrides:
      processTask in class AbstractCaseAssert<CaseInstanceAssert,CaseInstance>
      Parameters:
      activityId - activity if further narrowing down the search for caseExecutions. The query is automatically narrowed down to the actual 'parent' CaseExecution under test of this assertion as well as to the type 'processTask'.
      Returns:
      the only CaseExecution with the given activitiy id. A 'null' CaseExecution in case no such CaseExecution is available.
    • stage

      public StageAssert stage(CaseExecutionQuery query)
      Description copied from class: AbstractCaseAssert
      Enter into a chained StageAssert inspecting the one and mostly one 'stage' currently available in the context of the actual caseExecution under test of this AbstractCaseAssert. The query is automatically narrowed down to the actual caseExecution under test of this assertion as well as to the type 'stage'. Change visibility to public for those inheriting classes for whose underlying objects under test this method makes sense
      Overrides:
      stage in class AbstractCaseAssert<CaseInstanceAssert,CaseInstance>
      Parameters:
      query - CaseExecutionQuery further narrowing down the search for caseExecutions. The query is automatically narrowed down to the actual 'parent' CaseExecution under test of this assertion as well as to the type 'stage'.
      Returns:
      the only CaseExecution resulting from the given search. A 'null' CaseExecution in case no such CaseExecution is available.
    • stage

      public StageAssert stage(String activityId)
      Description copied from class: AbstractCaseAssert
      Enter into a chained StageAssert inspecting the one and mostly one 'stage' currently available in the context of the actual caseExecution under test of this AbstractCaseAssert. The query is automatically narrowed down to the actual caseExecution under test of this assertion as well as to the type 'stage'. Change visibility to public for those inheriting classes for whose underlying objects under test this method makes sense
      Overrides:
      stage in class AbstractCaseAssert<CaseInstanceAssert,CaseInstance>
      Parameters:
      activityId - activity if further narrowing down the search for caseExecutions. The query is automatically narrowed down to the actual 'parent' CaseExecution under test of this assertion as well as to the type 'stage'.
      Returns:
      the only CaseExecution with the given activitiy id. A 'null' CaseExecution in case no such CaseExecution is available.
    • milestone

      public MilestoneAssert milestone(CaseExecutionQuery query)
      Description copied from class: AbstractCaseAssert
      Enter into a chained MilestoneAssert inspecting the one and mostly one 'milestone' currently available in the context of the actual caseExecution under test of this AbstractCaseAssert. The query is automatically narrowed down to the actual caseExecution under test of this assertion as well as to the type 'milestone'. Change visibility to public for those inheriting classes for whose underlying objects under test this method makes sense
      Overrides:
      milestone in class AbstractCaseAssert<CaseInstanceAssert,CaseInstance>
      Parameters:
      query - CaseExecutionQuery further narrowing down the search for caseExecutions. The query is automatically narrowed down to the actual 'parent' CaseExecution under test of this assertion as well as to the type 'milestone'.
      Returns:
      the only CaseExecution resulting from the given search. A 'null' CaseExecution in case no such CaseExecution is available.
    • milestone

      public MilestoneAssert milestone(String activityId)
      Description copied from class: AbstractCaseAssert
      Enter into a chained MilestoneAssert inspecting the one and mostly one 'milestone' currently available in the context of the actual caseExecution under test of this AbstractCaseAssert. The query is automatically narrowed down to the actual caseExecution under test of this assertion as well as to the type 'milestone'. Change visibility to public for those inheriting classes for whose underlying objects under test this method makes sense
      Overrides:
      milestone in class AbstractCaseAssert<CaseInstanceAssert,CaseInstance>
      Parameters:
      activityId - activity if further narrowing down the search for caseExecutions. The query is automatically narrowed down to the actual 'parent' CaseExecution under test of this assertion as well as to the type 'milestone'.
      Returns:
      the only CaseExecution with the given activitiy id. A 'null' CaseExecution in case no such CaseExecution is available.
    • getHistoricState

      protected int getHistoricState()
      Overrides:
      getHistoricState in class AbstractCaseAssert<CaseInstanceAssert,CaseInstance>
      Returns:
      historic state for the object under test from history database