public interface TestCases
| Modifier and Type | Method and Description |
|---|---|
List<TestCase> |
get()
Gets all test cases of all processes that are defined in the BPMN model.
|
List<TestCase> |
get(String processId)
Gets the test cases of the process with the given ID.
|
org.camunda.bpm.model.bpmn.BpmnModelInstance |
getModelInstance()
Returns the underlying BPMN model instance.
|
Set<String> |
getProcessIds()
Gets the IDs of all processes that are defined in the BPMN model.
|
boolean |
isEmpty()
Determines if the BPMN model does not define test cases.
|
static TestCases |
of(org.camunda.bpm.model.bpmn.BpmnModelInstance modelInstance)
Gets the test cases of the given BPMN model instance.
|
static TestCases |
of(InputStream stream)
Reads test cases from the given input stream.
|
static TestCases |
of(Path bpmnFile)
Reads test cases from the BPMN file with the given path.
|
static TestCases of(InputStream stream)
stream - A stream to read from.static TestCases of(org.camunda.bpm.model.bpmn.BpmnModelInstance modelInstance)
modelInstance - A model instance with or without "bpmndt:testCases" extension elements.static TestCases of(Path bpmnFile)
bpmnFile - A readable BPMN file.List<TestCase> get()
List<TestCase> get(String processId)
processId - A specific process ID.org.camunda.bpm.model.bpmn.BpmnModelInstance getModelInstance()
Set<String> getProcessIds()
boolean isEmpty()
true, if no test cases are defined. Otherwise false.Copyright © 2023 Camunda. All rights reserved.