Interface TestCase
public interface TestCase
Test case of BPMN process, including its elements.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the test case's description.Gets the BPMN element IDs of the test case's path.Gets the test case's elements.Gets the end element, if the test case's path is not empty.Gets the BPMN element IDs of the test case's path, which are not valid (do not exist within the related process).getName()Returns the test case's name.io.camunda.zeebe.model.bpmn.instance.ProcessReturns the related process.Returns the ID of the underlying BPMN process.Returns the name of the underlying BPMN process.Gets the start element, if the test case's path is not empty.booleanDetermines if the test case path consists of no elements.booleanDetermines if the test case path consists of only one BPMN element.booleanDetermines if the test case path contains invalid BPMN elements.booleanisValid()Determines if the test case is valid - the path is not empty, incomplete nor invalid.
-
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
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
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:
-
getProcessName
String getProcessName()Returns the name of the underlying BPMN process.- Returns:
- The process name or
null, if not specified. - See Also:
-
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. Otherwisefalse.
-
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. Otherwisefalse.
-
hasInvalidPath
boolean hasInvalidPath()Determines if the test case path contains invalid BPMN elements.- Returns:
true, if the test case has an invalid path. Otherwisefalse.- 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. Otherwisefalse.- See Also:
-