Interface TestCase


public interface TestCase
Test case of BPMN process, including its activities.
  • Method Details

    • getActivities

      List<TestCaseActivity> getActivities()
      Gets the test case's activities.
      Returns:
      A list of activities that are passed during test execution.
    • getActivityScopes

      List<TestCaseActivityScope> getActivityScopes()
      Gets the scopes of the test case activities.
      Returns:
      A list of involved scopes.
    • getDescription

      String getDescription()
      Returns the test case's description.
      Returns:
      The description or null, if not specified.
    • getEndActivity

      TestCaseActivity getEndActivity()
      Gets the end activity, if the test case's path is not empty.
      Returns:
      The end activity.
      Throws:
      IllegalStateException - If the path is empty.
      See Also:
    • getFlowNodeIds

      List<String> getFlowNodeIds()
      Gets the flow node IDs of the test case's path.
      Returns:
      A list of flow node IDs, starting with the start activity and ending with the end activity.
    • getInvalidFlowNodeIds

      List<String> getInvalidFlowNodeIds()
      Gets the flow node IDs of the test case's path, which are not valid (do not exist within the related process).
      Returns:
      A list of invalid flow node IDs.
    • getName

      String getName()
      Returns the test case's name.
      Returns:
      The name or null, if not specified.
    • getProcess

      org.camunda.bpm.model.bpmn.instance.Process getProcess()
      Returns the related process.
      Returns:
      The BPMN process, that belongs to the test case.
    • getProcessId

      String getProcessId()
      Returns the ID of the underlying BPMN process.
      Returns:
      The process ID (process definition key).
      See Also:
      • BaseElement.getId()
    • getProcessName

      String getProcessName()
      Returns the name of the underlying BPMN process.
      Returns:
      The process name or null, if not specified.
      See Also:
      • CallableElement.getName()
    • getStartActivity

      TestCaseActivity getStartActivity()
      Gets the start activity, if the test case's path is not empty.
      Returns:
      The start activity.
      Throws:
      IllegalStateException - If the path is empty.
      See Also:
    • hasEmptyPath

      boolean hasEmptyPath()
      Determines if the test case path consists of no flow nodes.
      Returns:
      true, if the test case has an empty path. Otherwise false.
    • hasIncompletePath

      boolean hasIncompletePath()
      Determines if the test case path consists of only one flow node.
      Returns:
      true, if the test case has an incomplete path. Otherwise false.
    • hasInvalidPath

      boolean hasInvalidPath()
      Determines if the test case path contains invalid flow nodes.
      Returns:
      true, if the test case has an invalid path. Otherwise false.
      See Also:
    • isValid

      boolean isValid()
      Determines if the test case is valid - the path is not empty, incomplete nor invalid.
      Returns:
      true, if the test case is valid. Otherwise false.
      See Also: