Package org.camunda.community.bpmndt
Class TestCaseContext
java.lang.Object
org.camunda.community.bpmndt.TestCaseContext
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMultiInstanceActivity(TestCaseActivity activity) voidvoidaddStrategy(GeneratorStrategy strategy) Gets the name of the test case's class, starting with "TC_".getName()Gets the name of the test case's package, which is the lowered process ID as Java literal.Gets the name of the BPMN resources within the classpath.getStrategy(String activityId) Returns the strategy of the activity with the given ID.Returns the underlying test case.booleanDetermines whether the related test case has a duplicate name or not.voidsetClassName(String className) voidsetDuplicateName(boolean duplicateName) voidvoidsetPackageName(String packageName) voidsetResourceName(String resourceName) voidsetTestCase(TestCase testCase)
-
Constructor Details
-
TestCaseContext
public TestCaseContext()
-
-
Method Details
-
addMultiInstanceActivity
-
addMultiInstanceScope
-
addStrategy
-
getClassName
Gets the name of the test case's class, starting with "TC_".- Returns:
- The class name.
-
getMultiInstanceActivities
-
getMultiInstanceScopes
-
getName
-
getPackageName
Gets the name of the test case's package, which is the lowered process ID as Java literal.- Returns:
- The package name.
-
getResourceName
Gets the name of the BPMN resources within the classpath.- Returns:
- The BPMN classpath resource name.
-
getStrategy
Returns the strategy of the activity with the given ID.- Parameters:
activityId- ID of an existing activity.- Returns:
- The strategy.
-
getTestCase
Returns the underlying test case.- Returns:
- The test case.
-
hasDuplicateName
public boolean hasDuplicateName()Determines whether the related test case has a duplicate name or not.- Returns:
true, if the test case's name is not unique. Otherwisefalse.
-
setClassName
-
setDuplicateName
public void setDuplicateName(boolean duplicateName) -
setName
-
setPackageName
-
setResourceName
-
setTestCase
-