Interface TestCase
public interface TestCase
Test case of BPMN process, including its activities.
-
Method Summary
Modifier and TypeMethodDescriptionGets the test case's activities.Gets the scopes of the test case activities.Returns the test case's description.Gets the end activity, if the test case's path is not empty.Gets the flow node IDs of the test case's path.Gets the flow node 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.org.camunda.bpm.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 activity, if the test case's path is not empty.booleanDetermines if the test case path consists of no flow nodes.booleanDetermines if the test case path consists of only one flow node.booleanDetermines if the test case path contains invalid flow nodes.booleanisValid()Determines if the test case is valid - the path is not empty, incomplete nor invalid.
-
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
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
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:
-
getProcessName
String getProcessName()Returns the name of the underlying BPMN process.- Returns:
- The process name or
null, if not specified. - See Also:
-
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. Otherwisefalse.
-
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. Otherwisefalse.
-
hasInvalidPath
boolean hasInvalidPath()Determines if the test case path contains invalid flow nodes.- 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:
-