Class DelegateExecutionFake
java.lang.Object
org.camunda.bpm.engine.impl.core.variable.scope.AbstractVariableScope
org.camunda.community.mockito.delegate.VariableScopeFake<T>
org.camunda.community.mockito.delegate.DelegateExecutionFake
- All Implemented Interfaces:
Serializable,org.camunda.bpm.engine.delegate.BaseDelegateExecution,org.camunda.bpm.engine.delegate.BpmnModelExecutionContext,org.camunda.bpm.engine.delegate.DelegateExecution,org.camunda.bpm.engine.delegate.ProcessEngineServicesAware,org.camunda.bpm.engine.delegate.VariableScope,org.camunda.bpm.engine.impl.core.variable.event.VariableEventDispatcher
public class DelegateExecutionFake
extends VariableScopeFake<T>
implements org.camunda.bpm.engine.delegate.DelegateExecution
Fake delegateExecution to test simple delegates/listeners without mocking.
Not all operations are support, extend if needed.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
FieldsFields inherited from class org.camunda.community.mockito.delegate.VariableScopeFake
variableInstanceFactory, variableStoreFields inherited from class org.camunda.bpm.engine.impl.core.variable.scope.AbstractVariableScope
cachedElContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.camunda.bpm.engine.runtime.IncidentcreateIncident(String incidentType, String configuration) org.camunda.bpm.engine.runtime.IncidentcreateIncident(String incidentType, String configuration, String message) org.camunda.bpm.model.bpmn.instance.FlowElementorg.camunda.bpm.model.bpmn.BpmnModelInstancegetId()org.camunda.bpm.engine.ProcessEngineorg.camunda.bpm.engine.ProcessEngineServicesorg.camunda.bpm.engine.delegate.DelegateExecutionorg.camunda.bpm.engine.delegate.DelegateExecutionbooleanstatic DelegateExecutionFakeof()voidresolveIncident(String incidentId) voidsetProcessBusinessKey(String processBusinessKey) voidsetVariable(String variableName, Object value, String activityId) toString()withActivityInstanceId(String activityInstanceId) withBusinessKey(String businessKey) withCanceled(boolean canceled) withCurrentActivityId(String currentActivityId) withCurrentActivityName(String currentActivityName) withCurrentTransitionId(String currentTransitionId) withEventName(String eventName) withParentActivityInstanceId(String parentActivityInstanceId) withParentId(String parentId) withProcessBusinessKey(String processBusinessKey) withProcessDefinitionId(String processDefinitionId) withProcessEngine(org.camunda.bpm.engine.ProcessEngine processEngine) withProcessEngineServices(org.camunda.bpm.engine.ProcessEngineServices processEngineServices) withProcessInstance(org.camunda.bpm.engine.delegate.DelegateExecution processInstance) withProcessInstanceId(String processInstanceId) withSuperExecution(org.camunda.bpm.engine.delegate.DelegateExecution superExecution) withTenantId(String tenantId) Methods inherited from class org.camunda.community.mockito.delegate.VariableScopeFake
getParentVariableScope, getVariableInstanceFactory, getVariableInstanceLifecycleListeners, getVariableScopeKey, getVariableStore, withVariable, withVariable, withVariableLocal, withVariableLocal, withVariables, withVariablesLocalMethods inherited from class org.camunda.bpm.engine.impl.core.variable.scope.AbstractVariableScope
collectVariableNames, collectVariables, dispatchEvent, getCachedElContext, getSourceActivityVariableScope, getValueFromVariableInstance, getVariable, getVariable, getVariableInstance, getVariableInstanceLocal, getVariableInstancesLocal, getVariableInstancesLocal, getVariableLocal, getVariableLocal, getVariableLocalTyped, getVariableLocalTyped, getVariableNames, getVariableNamesLocal, getVariables, getVariablesLocal, getVariablesLocalTyped, getVariablesLocalTyped, getVariablesTyped, getVariablesTyped, getVariableTyped, getVariableTyped, hasVariable, hasVariableLocal, hasVariables, hasVariablesLocal, initializeVariableStore, invokeVariableLifecycleListenersCreate, invokeVariableLifecycleListenersCreate, invokeVariableLifecycleListenersDelete, invokeVariableLifecycleListenersDelete, invokeVariableLifecycleListenersUpdate, invokeVariableLifecycleListenersUpdate, removeVariable, removeVariable, removeVariableLocal, removeVariableLocal, removeVariables, removeVariables, removeVariablesLocal, removeVariablesLocal, setCachedElContext, setVariable, setVariable, setVariable, setVariable, setVariableLocal, setVariableLocal, setVariableLocal, setVariables, setVariables, setVariablesLocal, setVariablesLocalMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.camunda.bpm.engine.delegate.ProcessEngineServicesAware
getProcessEngine, getProcessEngineServicesMethods inherited from interface org.camunda.bpm.engine.delegate.VariableScope
getVariable, getVariableLocal, getVariableLocalTyped, getVariableLocalTyped, getVariableNames, getVariableNamesLocal, getVariables, getVariableScopeKey, getVariablesLocal, getVariablesLocalTyped, getVariablesLocalTyped, getVariablesTyped, getVariablesTyped, getVariableTyped, getVariableTyped, hasVariable, hasVariableLocal, hasVariables, hasVariablesLocal, removeVariable, removeVariableLocal, removeVariables, removeVariables, removeVariablesLocal, removeVariablesLocal, setVariable, setVariableLocal, setVariables, setVariablesLocal
-
Field Details
-
processEngineServicesAwareFake
-
-
Constructor Details
-
DelegateExecutionFake
public DelegateExecutionFake() -
DelegateExecutionFake
-
-
Method Details
-
of
-
getProcessInstanceId
- Specified by:
getProcessInstanceIdin interfaceorg.camunda.bpm.engine.delegate.DelegateExecution
-
withProcessInstanceId
-
getProcessBusinessKey
- Specified by:
getProcessBusinessKeyin interfaceorg.camunda.bpm.engine.delegate.DelegateExecution
-
setProcessBusinessKey
- Specified by:
setProcessBusinessKeyin interfaceorg.camunda.bpm.engine.delegate.DelegateExecution
-
withProcessBusinessKey
-
getProcessDefinitionId
- Specified by:
getProcessDefinitionIdin interfaceorg.camunda.bpm.engine.delegate.DelegateExecution
-
withProcessDefinitionId
-
getParentId
- Specified by:
getParentIdin interfaceorg.camunda.bpm.engine.delegate.DelegateExecution
-
withParentId
-
getCurrentActivityId
- Specified by:
getCurrentActivityIdin interfaceorg.camunda.bpm.engine.delegate.DelegateExecution
-
withCurrentActivityId
-
getCurrentActivityName
- Specified by:
getCurrentActivityNamein interfaceorg.camunda.bpm.engine.delegate.DelegateExecution
-
withCurrentActivityName
-
getActivityInstanceId
- Specified by:
getActivityInstanceIdin interfaceorg.camunda.bpm.engine.delegate.DelegateExecution
-
withActivityInstanceId
-
getParentActivityInstanceId
- Specified by:
getParentActivityInstanceIdin interfaceorg.camunda.bpm.engine.delegate.DelegateExecution
-
withParentActivityInstanceId
-
getCurrentTransitionId
- Specified by:
getCurrentTransitionIdin interfaceorg.camunda.bpm.engine.delegate.DelegateExecution
-
withCurrentTransitionId
-
getProcessInstance
public org.camunda.bpm.engine.delegate.DelegateExecution getProcessInstance()- Specified by:
getProcessInstancein interfaceorg.camunda.bpm.engine.delegate.DelegateExecution
-
withProcessInstance
public DelegateExecutionFake withProcessInstance(org.camunda.bpm.engine.delegate.DelegateExecution processInstance) -
getSuperExecution
public org.camunda.bpm.engine.delegate.DelegateExecution getSuperExecution()- Specified by:
getSuperExecutionin interfaceorg.camunda.bpm.engine.delegate.DelegateExecution
-
withSuperExecution
public DelegateExecutionFake withSuperExecution(org.camunda.bpm.engine.delegate.DelegateExecution superExecution) -
isCanceled
public boolean isCanceled()- Specified by:
isCanceledin interfaceorg.camunda.bpm.engine.delegate.DelegateExecution
-
withCanceled
-
getTenantId
- Specified by:
getTenantIdin interfaceorg.camunda.bpm.engine.delegate.DelegateExecution
-
withTenantId
-
setVariable
- Specified by:
setVariablein interfaceorg.camunda.bpm.engine.delegate.DelegateExecution
-
createIncident
public org.camunda.bpm.engine.runtime.Incident createIncident(String incidentType, String configuration) - Specified by:
createIncidentin interfaceorg.camunda.bpm.engine.delegate.DelegateExecution
-
createIncident
public org.camunda.bpm.engine.runtime.Incident createIncident(String incidentType, String configuration, String message) - Specified by:
createIncidentin interfaceorg.camunda.bpm.engine.delegate.DelegateExecution
-
resolveIncident
- Specified by:
resolveIncidentin interfaceorg.camunda.bpm.engine.delegate.DelegateExecution
-
getId
- Specified by:
getIdin interfaceorg.camunda.bpm.engine.delegate.BaseDelegateExecution
-
withId
-
getEventName
- Specified by:
getEventNamein interfaceorg.camunda.bpm.engine.delegate.BaseDelegateExecution
-
withEventName
-
getBusinessKey
- Specified by:
getBusinessKeyin interfaceorg.camunda.bpm.engine.delegate.BaseDelegateExecution
-
withBusinessKey
-
getBpmnModelInstance
public org.camunda.bpm.model.bpmn.BpmnModelInstance getBpmnModelInstance()- Specified by:
getBpmnModelInstancein interfaceorg.camunda.bpm.engine.delegate.BpmnModelExecutionContext
-
getBpmnModelElementInstance
public org.camunda.bpm.model.bpmn.instance.FlowElement getBpmnModelElementInstance()- Specified by:
getBpmnModelElementInstancein interfaceorg.camunda.bpm.engine.delegate.BpmnModelExecutionContext
-
withBpmnModelElementInstanceType
-
getIncidents
-
toString
-
getProcessEngineServices
public org.camunda.bpm.engine.ProcessEngineServices getProcessEngineServices()- Specified by:
getProcessEngineServicesin interfaceorg.camunda.bpm.engine.delegate.ProcessEngineServicesAware
-
withProcessEngineServices
public DelegateExecutionFake withProcessEngineServices(org.camunda.bpm.engine.ProcessEngineServices processEngineServices) -
getProcessEngine
public org.camunda.bpm.engine.ProcessEngine getProcessEngine()- Specified by:
getProcessEnginein interfaceorg.camunda.bpm.engine.delegate.ProcessEngineServicesAware
-
withProcessEngine
-