Package org.camunda.community.bpmndt.api
Class TestCaseInstance
java.lang.Object
org.camunda.community.bpmndt.api.TestCaseInstance
Link between test case and it's execution, utilizing a process instance that was instantiated by
a
TestCaseExecutor and handlers (e.g. UserTaskHandler) that are part of a test
case.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(EventHandler handler) voidapply(ExternalTaskHandler handler) voidapply(JobHandler handler) voidapply(MultiInstanceHandler<?, ?> handler) voidapply(MultiInstanceScopeHandler<?> handler) voidapply(UserTaskHandler handler) protected voiddeploy(String deploymentName, InputStream bpmnResource) protected voidbooleanexecute(org.camunda.bpm.engine.impl.pvm.delegate.ActivityExecution execution, org.camunda.bpm.engine.impl.bpmn.behavior.CallActivityBehavior behavior) Executes a stubbed call activity using aCallActivityHandlerthat was registered for the given activity.getEnd()org.camunda.bpm.engine.ProcessEnginegetStart()booleanprotected voidregisterCallActivityHandler(String activityId, CallActivityHandler handler) protected voidsetProcessInstance(org.camunda.bpm.engine.runtime.ProcessInstance pi) protected voidundeploy()
-
Field Details
-
PROCESS_ENGINE_NAME
Name of the process engine to use.- See Also:
-
end
-
processDefinitionKey
Key of the test case related process definition. -
processEnd
protected boolean processEnd -
processEngine
protected org.camunda.bpm.engine.ProcessEngine processEngine -
start
-
tenantId
-
-
Constructor Details
-
TestCaseInstance
public TestCaseInstance()
-
-
Method Details
-
apply
-
apply
-
apply
-
apply
-
apply
-
apply
-
deploy
-
deploy
-
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 aCallActivityHandlerthat 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
-
getEnd
-
getProcessDefinitionId
-
getProcessDefinitionKey
-
getProcessEngine
public org.camunda.bpm.engine.ProcessEngine getProcessEngine() -
getStart
-
isProcessEnd
public boolean isProcessEnd() -
registerCallActivityHandler
-
setProcessInstance
protected void setProcessInstance(org.camunda.bpm.engine.runtime.ProcessInstance pi) -
undeploy
protected void undeploy()
-