Class TestCaseContext

java.lang.Object
org.camunda.community.bpmndt.TestCaseContext

public class TestCaseContext extends Object
  • Constructor Details

    • TestCaseContext

      public TestCaseContext()
  • Method Details

    • addMultiInstance

      public void addMultiInstance(BpmnElement element)
    • addMultiInstanceScope

      public void addMultiInstanceScope(BpmnElementScope scope)
    • addStrategy

      public void addStrategy(GeneratorStrategy strategy)
    • getClassName

      public String getClassName()
      Gets the name of the test case's class, starting with "TC_".
      Returns:
      The class name.
    • getMultiInstances

      public List<BpmnElement> getMultiInstances()
    • getMultiInstanceScopes

      public List<BpmnElementScope> getMultiInstanceScopes()
    • getName

      public String getName()
    • getPackageName

      public String getPackageName()
      Gets the name of the test case's package, which is the lowered process ID as Java literal.
      Returns:
      The package name.
    • getResourceName

      public String getResourceName()
      Gets the name of the BPMN resources within the classpath.
      Returns:
      The BPMN classpath resource name.
    • getStrategies

      public List<GeneratorStrategy> getStrategies()
      Returns the strategies of all relevant BPMN elements and scopes.
      Returns:
      A list of strategies.
    • getTestCase

      public TestCase 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. Otherwise false.
    • setClassName

      public void setClassName(String className)
    • setDuplicateName

      public void setDuplicateName(boolean duplicateName)
    • setName

      public void setName(String name)
    • setPackageName

      public void setPackageName(String packageName)
    • setResourceName

      public void setResourceName(String resourceName)
    • setTestCase

      public void setTestCase(TestCase testCase)