public class TestCaseContext extends Object
| Constructor and Description |
|---|
TestCaseContext(BpmnSupport bpmnSupport,
TestCase testCase) |
| Modifier and Type | Method and Description |
|---|---|
void |
addActivity(TestCaseActivity next) |
void |
addInvalidFlowNodeId(String flowNodeId)
Adds the ID of a flow node to the invalid node IDs, because it does not exists within the BPMN
model instance.
|
List<TestCaseActivity> |
getActivities() |
Set<TestCaseActivity> |
getActivities(Predicate<TestCaseActivity> filter)
Gets all activities (including activities from scopes) that satisfy the given filter.
|
String |
getClassName()
Gets the name of the test case's class.
|
String |
getDescription() |
TestCaseActivity |
getEndActivity() |
List<String> |
getInvalidFlowNodeIds() |
String |
getName() |
String |
getPackageName()
Gets the name of the test case's package.
|
String |
getProcessId() |
String |
getResourceName(Path resourcePath) |
TestCaseActivity |
getStartActivity() |
boolean |
hasDuplicateName()
Determines whether the related test case has a duplicate name or not.
|
boolean |
isPathEmpty() |
boolean |
isPathIncomplete() |
boolean |
isPathInvalid() |
boolean |
isValid() |
void |
setDuplicateName(boolean duplicateName) |
public TestCaseContext(BpmnSupport bpmnSupport, TestCase testCase)
public void addActivity(TestCaseActivity next)
public void addInvalidFlowNodeId(String flowNodeId)
flowNodeId - A flow node ID of the test case.getInvalidFlowNodeIds(),
isPathInvalid()public List<TestCaseActivity> getActivities()
public Set<TestCaseActivity> getActivities(Predicate<TestCaseActivity> filter)
filter - An activity filter.public String getClassName()
public String getDescription()
public TestCaseActivity getEndActivity()
public String getName()
public String getPackageName()
public String getProcessId()
public TestCaseActivity getStartActivity()
public boolean hasDuplicateName()
true, if the test case's name is not unique. Otherwise false.public boolean isPathEmpty()
public boolean isPathIncomplete()
public boolean isPathInvalid()
public boolean isValid()
public void setDuplicateName(boolean duplicateName)
Copyright © 2023 Camunda Services GmbH. All rights reserved.