Package org.camunda.community.bpmndt
Class TestCaseContext
java.lang.Object
org.camunda.community.bpmndt.TestCaseContext
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMultiInstance(BpmnElement element) 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.Returns the strategies of all relevant BPMN elements and scopes.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
-
addMultiInstance
-
addMultiInstanceScope
-
addStrategy
-
getClassName
Gets the name of the test case's class, starting with "TC_".- Returns:
- The class name.
-
getMultiInstances
-
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.
-
getStrategies
Returns the strategies of all relevant BPMN elements and scopes.- Returns:
- A list of strategies.
-
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
-