Class TestCaseInstance

java.lang.Object
org.camunda.community.bpmndt.api.TestCaseInstance

public class TestCaseInstance extends Object
Link between test case, and its execution, utilizing a process instance that was instantiated by a TestCaseExecutor and handlers (e.g. UserTaskHandler) that are part of a test case.
  • Field Details

    • PROCESS_ENGINE_NAME

      public static final String PROCESS_ENGINE_NAME
      Name of the process engine to use.
      See Also:
    • end

      protected String end
    • processDefinitionKey

      protected String processDefinitionKey
      Key of the test case related process definition.
    • processEnd

      protected boolean processEnd
    • processEngine

      protected org.camunda.bpm.engine.ProcessEngine processEngine
    • start

      protected String start
    • tenantId

      protected String tenantId
  • Constructor Details

    • TestCaseInstance

      public TestCaseInstance()
  • Method Details

    • apply

      public void apply(EventHandler handler)
    • apply

      public void apply(ExternalTaskHandler handler)
    • apply

      public void apply(JobHandler handler)
    • apply

      public void apply(MultiInstanceHandler<?,?> handler)
    • apply

      public void apply(MultiInstanceScopeHandler<?> handler)
    • apply

      public void apply(UserTaskHandler handler)
    • deploy

      protected void deploy(String deploymentName, InputStream bpmnResource)
    • deploy

      protected void deploy(String deploymentName, String bpmnResourceName)
    • execute

      public boolean execute(org.camunda.bpm.engine.impl.pvm.delegate.ActivityExecution execution, org.camunda.bpm.engine.impl.bpmn.behavior.CallActivityBehavior behavior) throws Exception
      Executes a stubbed call activity using a CallActivityHandler that was registered for the given activity.
      Parameters:
      execution - The current execution.
      behavior - The call activity's original behavior.
      Returns:
      true, if the execution should leave the call activity. false, if the execution should wait at the call activity.
      Throws:
      Exception - If the occurrence of an error end event is simulated and the error propagation fails.
      See Also:
    • getDeploymentId

      public String getDeploymentId()
    • getEnd

      public String getEnd()
    • getProcessDefinitionId

      public String getProcessDefinitionId()
    • getProcessDefinitionKey

      public String getProcessDefinitionKey()
    • getProcessEngine

      public org.camunda.bpm.engine.ProcessEngine getProcessEngine()
    • getStart

      public String getStart()
    • isProcessEnd

      public boolean isProcessEnd()
    • registerCallActivityHandler

      protected void registerCallActivityHandler(String activityId, CallActivityHandler handler)
    • setProcessInstance

      protected void setProcessInstance(org.camunda.bpm.engine.runtime.ProcessInstance pi)
    • undeploy

      protected void undeploy()