Class AbstractCaseAssert<S extends AbstractCaseAssert<S,​A>,​A extends CaseExecution>

    • Constructor Detail

      • AbstractCaseAssert

        protected AbstractCaseAssert​(ProcessEngine engine,
                                     A actual,
                                     java.lang.Class<?> selfType)
    • Method Detail

      • isAvailable

        protected S isAvailable()
        Verifies the expectation that the CaseExecution is 'available'. Change visibility to public for those inheriting classes for whose underlying objects under test this status makes sense
        Returns:
        this
      • isEnabled

        protected S isEnabled()
        Verifies the expectation that the CaseExecution is 'enabled'. Change visibility to public for those inheriting classes for whose underlying objects under test this status makes sense
        Returns:
        this
      • isDisabled

        protected S isDisabled()
        Verifies the expectation that the CaseExecution is 'disabled'. Change visibility to public for those inheriting classes for whose underlying objects under test this status makes sense
        Returns:
        this
      • isActive

        protected S isActive()
        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
        Returns:
        this
      • isCompleted

        protected S isCompleted()
        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
        Returns:
        this
      • isClosed

        protected S isClosed()
        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
        Returns:
        this
      • isTerminated

        protected S isTerminated()
        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
        Returns:
        this
      • isCaseInstance

        protected CaseInstanceAssert isCaseInstance()
        Verifies the expectation that the CaseExecution is the 'case' instance. Change visibility to public for those inheriting classes for whose underlying objects under test this assertion makes sense
        Returns:
        this
      • isStage

        protected StageAssert isStage()
        Verifies the expectation that the CaseExecution is a 'stage' Change visibility to public for those inheriting classes for whose underlying objects under test this assertion makes sense
        Returns:
        this
      • isHumanTask

        protected HumanTaskAssert isHumanTask()
        Verifies the expectation that the CaseExecution is a 'humanTask' Change visibility to public for those inheriting classes for whose underlying objects under test this assertion makes sense
        Returns:
        this
      • isProcessTask

        protected ProcessTaskAssert isProcessTask()
        Verifies the expectation that the CaseExecution is a 'processTask' Change visibility to public for those inheriting classes for whose underlying objects under test this assertion makes sense
        Returns:
        this
      • isCaseTask

        protected CaseTaskAssert isCaseTask()
        Verifies the expectation that the CaseExecution is a 'caseTask' Change visibility to public for those inheriting classes for whose underlying objects under test this assertion makes sense
        Returns:
        this
      • isMilestone

        protected MilestoneAssert isMilestone()
        Verifies the expectation that the CaseExecution is a 'milestone' Change visibility to public for those inheriting classes for whose underlying objects under test this assertion makes sense
        Returns:
        this
      • caseExecution

        protected CaseExecutionAssert caseExecution​(CaseExecutionQuery query)
        Retrieve a child CaseExecution 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.
        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.
        Returns:
        the only CaseExecution resulting from the given search. A 'null' CaseExecution in case no such CaseExecution is available.
        Throws:
        ProcessEngineException - in case more than one CaseExecution is delivered by the query (after being narrowed to the actual 'parent' CaseExecution)
        See Also:
        to find grandchilds and other descendants, too.
      • descendantCaseExecution

        protected CaseExecutionAssert descendantCaseExecution​(CaseExecutionQuery query)
        Retrieve any descendant CaseExecution currently available in the context of the actual caseInstance under test of this AbstractCaseAssert. The query is automatically narrowed down to the actual caseExecution under test of this assertion.
        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.
        Returns:
        the only CaseExecution resulting from the given search. A 'null' CaseExecution in case no such CaseExecution is available.
        Throws:
        ProcessEngineException - in case more than one CaseExecution is delivered by the query (after being narrowed to the actual 'parent' CaseExecution)
        See Also:
        to find only children of this
      • humanTask

        protected HumanTaskAssert humanTask​(CaseExecutionQuery query)
        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
        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.
        Throws:
        ProcessEngineException - in case more than one CaseExecution is delivered by the query (after being narrowed to the actual 'parent' CaseExecution)
      • humanTask

        protected HumanTaskAssert humanTask​(java.lang.String activityId)
        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
        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.
        Throws:
        ProcessEngineException - in case more than one CaseExecution is delivered by the query (after being narrowed to the actual 'parent' CaseExecution)
      • caseTask

        protected CaseTaskAssert caseTask​(CaseExecutionQuery query)
        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
        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.
        Throws:
        ProcessEngineException - in case more than one CaseExecution is delivered by the query (after being narrowed to the actual 'parent' CaseExecution)
      • caseTask

        protected CaseTaskAssert caseTask​(java.lang.String activityId)
        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
        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.
        Throws:
        ProcessEngineException - in case more than one CaseExecution is delivered by the query (after being narrowed to the actual 'parent' CaseExecution)
      • processTask

        protected ProcessTaskAssert processTask​(CaseExecutionQuery query)
        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
        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.
        Throws:
        ProcessEngineException - in case more than one CaseExecution is delivered by the query (after being narrowed to the actual 'parent' CaseExecution)
      • processTask

        protected ProcessTaskAssert processTask​(java.lang.String activityId)
        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
        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.
        Throws:
        ProcessEngineException - in case more than one CaseExecution is delivered by the query (after being narrowed to the actual 'parent' CaseExecution)
      • stage

        protected StageAssert stage​(CaseExecutionQuery query)
        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
        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.
        Throws:
        ProcessEngineException - in case more than one CaseExecution is delivered by the query (after being narrowed to the actual 'parent' CaseExecution)
      • stage

        protected StageAssert stage​(java.lang.String activityId)
        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
        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.
        Throws:
        ProcessEngineException - in case more than one CaseExecution is delivered by the query (after being narrowed to the actual 'parent' CaseExecution)
      • milestone

        protected MilestoneAssert milestone​(CaseExecutionQuery query)
        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
        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.
        Throws:
        ProcessEngineException - in case more than one CaseExecution is delivered by the query (after being narrowed to the actual 'parent' CaseExecution)
      • milestone

        protected MilestoneAssert milestone​(java.lang.String activityId)
        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
        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.
        Throws:
        ProcessEngineException - in case more than one CaseExecution is delivered by the query (after being narrowed to the actual 'parent' CaseExecution)
      • getHistoricState

        protected int getHistoricState()
        Returns:
        historic state for the object under test from history database
      • variables

        protected org.assertj.core.api.MapAssert<java.lang.String,​java.lang.Object> variables()
        Enter into a chained map assert inspecting the variables currently available in the context of the case instance under test of this AbstractCaseAssert.
        Returns:
        MapAssert(String, Object) inspecting the case instance variables. Inspecting an empty map in case no such variables are available.
      • vars

        protected java.util.Map<java.lang.String,​java.lang.Object> vars()
      • hasVars

        protected S hasVars​(java.lang.String[] names)