public class TestCaseContext extends Object
| Constructor and Description |
|---|
TestCaseContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMultiInstanceActivity(TestCaseActivity activity) |
void |
addMultiInstanceScope(TestCaseActivityScope scope) |
void |
addStrategy(GeneratorStrategy strategy) |
String |
getClassName()
Gets the name of the test case's class, starting with "TC_".
|
List<TestCaseActivity> |
getMultiInstanceActivities() |
List<TestCaseActivityScope> |
getMultiInstanceScopes() |
String |
getName() |
String |
getPackageName()
Gets the name of the test case's package, which is the lowered process ID as Java literal.
|
String |
getResourceName()
Gets the name of the BPMN resources within the classpath.
|
GeneratorStrategy |
getStrategy(String activityId)
Returns the strategy of the activity with the given ID.
|
TestCase |
getTestCase()
Returns the underlying test case.
|
boolean |
hasDuplicateName()
Determines whether the related test case has a duplicate name or not.
|
void |
setClassName(String className) |
void |
setDuplicateName(boolean duplicateName) |
void |
setName(String name) |
void |
setPackageName(String packageName) |
void |
setResourceName(String resourceName) |
void |
setTestCase(TestCase testCase) |
public void addMultiInstanceActivity(TestCaseActivity activity)
public void addMultiInstanceScope(TestCaseActivityScope scope)
public void addStrategy(GeneratorStrategy strategy)
public String getClassName()
public List<TestCaseActivity> getMultiInstanceActivities()
public List<TestCaseActivityScope> getMultiInstanceScopes()
public String getName()
public String getPackageName()
public String getResourceName()
public GeneratorStrategy getStrategy(String activityId)
activityId - ID of an existing activity.public TestCase getTestCase()
public boolean hasDuplicateName()
true, if the test case's name is not unique. Otherwise false.public void setClassName(String className)
public void setDuplicateName(boolean duplicateName)
public void setName(String name)
public void setPackageName(String packageName)
public void setResourceName(String resourceName)
public void setTestCase(TestCase testCase)
Copyright © 2023 Camunda. All rights reserved.