Class CaseInstanceAssert

    • Constructor Detail

      • CaseInstanceAssert

        protected CaseInstanceAssert​(org.camunda.bpm.engine.ProcessEngine engine,
                                     org.camunda.bpm.engine.runtime.CaseInstance actual)
    • Method Detail

      • assertThat

        protected static CaseInstanceAssert assertThat​(org.camunda.bpm.engine.ProcessEngine engine,
                                                       org.camunda.bpm.engine.runtime.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,​org.camunda.bpm.engine.runtime.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,​org.camunda.bpm.engine.runtime.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,​org.camunda.bpm.engine.runtime.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,​org.camunda.bpm.engine.runtime.CaseInstance>
        Returns:
        this
      • humanTask

        public HumanTaskAssert humanTask​(org.camunda.bpm.engine.runtime.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,​org.camunda.bpm.engine.runtime.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,​org.camunda.bpm.engine.runtime.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​(org.camunda.bpm.engine.runtime.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,​org.camunda.bpm.engine.runtime.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,​org.camunda.bpm.engine.runtime.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​(org.camunda.bpm.engine.runtime.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,​org.camunda.bpm.engine.runtime.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,​org.camunda.bpm.engine.runtime.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​(org.camunda.bpm.engine.runtime.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,​org.camunda.bpm.engine.runtime.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,​org.camunda.bpm.engine.runtime.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​(org.camunda.bpm.engine.runtime.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,​org.camunda.bpm.engine.runtime.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,​org.camunda.bpm.engine.runtime.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.