Class FluentJavaDelegateMock
- java.lang.Object
-
- org.camunda.community.mockito.mock.FluentMock<org.camunda.bpm.engine.delegate.JavaDelegate,org.camunda.bpm.engine.delegate.DelegateExecution>
-
- org.camunda.community.mockito.mock.FluentJavaDelegateMock
-
- All Implemented Interfaces:
org.camunda.bpm.engine.delegate.JavaDelegate
public class FluentJavaDelegateMock extends FluentMock<org.camunda.bpm.engine.delegate.JavaDelegate,org.camunda.bpm.engine.delegate.DelegateExecution> implements org.camunda.bpm.engine.delegate.JavaDelegate
-
-
Field Summary
-
Fields inherited from class org.camunda.community.mockito.mock.FluentMock
mock, parameterType
-
-
Constructor Summary
Constructors Constructor Description FluentJavaDelegateMock()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(org.camunda.bpm.engine.delegate.DelegateExecution execution)voidonExecutionSetVariables(org.camunda.bpm.engine.variable.VariableMap variables)voidonExecutionThrowBpmnError(org.camunda.bpm.engine.delegate.BpmnError bpmnError)The implementation of throw-bpmn-error depends on the concrete type.voidonExecutionThrowException(Exception exception)The mock will throw the given exception on execution.-
Methods inherited from class org.camunda.community.mockito.mock.FluentMock
any, getMock, onExecutionSetVariable, onExecutionSetVariable, onExecutionSetVariables, onExecutionThrowBpmnError, onExecutionThrowBpmnError, setVariables
-
-
-
-
Method Detail
-
execute
public void execute(org.camunda.bpm.engine.delegate.DelegateExecution execution) throws Exception- Specified by:
executein interfaceorg.camunda.bpm.engine.delegate.JavaDelegate- Throws:
Exception
-
onExecutionSetVariables
public void onExecutionSetVariables(org.camunda.bpm.engine.variable.VariableMap variables)
- Specified by:
onExecutionSetVariablesin classFluentMock<org.camunda.bpm.engine.delegate.JavaDelegate,org.camunda.bpm.engine.delegate.DelegateExecution>- Parameters:
variables- the process variables this delegate sets when executed
-
onExecutionThrowBpmnError
public void onExecutionThrowBpmnError(org.camunda.bpm.engine.delegate.BpmnError bpmnError)
Description copied from class:FluentMockThe implementation of throw-bpmn-error depends on the concrete type.- Specified by:
onExecutionThrowBpmnErrorin classFluentMock<org.camunda.bpm.engine.delegate.JavaDelegate,org.camunda.bpm.engine.delegate.DelegateExecution>- Parameters:
bpmnError- the error instance
-
onExecutionThrowException
public void onExecutionThrowException(Exception exception)
Description copied from class:FluentMockThe mock will throw the given exception on execution.- Specified by:
onExecutionThrowExceptionin classFluentMock<org.camunda.bpm.engine.delegate.JavaDelegate,org.camunda.bpm.engine.delegate.DelegateExecution>- Parameters:
exception- the exception instance
-
-