Interface TestCase


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

    • getDescription

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

      List<BpmnElement> getElements()
      Gets the test case's elements.
      Returns:
      A list of BPMN elements that are passed during test execution.
    • getElementIds

      List<String> getElementIds()
      Gets the BPMN element IDs of the test case's path.
      Returns:
      A list of BPMN element IDs, starting with the start element and ending with the end element.
    • getEndElement

      BpmnElement getEndElement()
      Gets the end element, if the test case's path is not empty.
      Returns:
      The end element.
      Throws:
      IllegalStateException - If the path is empty.
      See Also:
    • getInvalidElementIds

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

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

      io.camunda.zeebe.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()
    • getStartElement

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

      boolean hasEmptyPath()
      Determines if the test case path consists of no elements.
      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 BPMN element.
      Returns:
      true, if the test case has an incomplete path. Otherwise false.
    • hasInvalidPath

      boolean hasInvalidPath()
      Determines if the test case path contains invalid BPMN elements.
      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: