Class FluentExecutionListenerMock

java.lang.Object
org.camunda.community.mockito.mock.FluentMock<org.camunda.bpm.engine.delegate.ExecutionListener,org.camunda.bpm.engine.delegate.DelegateExecution>
org.camunda.community.mockito.mock.FluentExecutionListenerMock
All Implemented Interfaces:
org.camunda.bpm.engine.delegate.DelegateListener<org.camunda.bpm.engine.delegate.DelegateExecution>, org.camunda.bpm.engine.delegate.ExecutionListener

public class FluentExecutionListenerMock extends FluentMock<org.camunda.bpm.engine.delegate.ExecutionListener,org.camunda.bpm.engine.delegate.DelegateExecution> implements org.camunda.bpm.engine.delegate.ExecutionListener
  • Constructor Details

    • FluentExecutionListenerMock

      public FluentExecutionListenerMock()
  • Method Details

    • onExecutionSetVariables

      public void onExecutionSetVariables(org.camunda.bpm.engine.variable.VariableMap variables)
      Specified by:
      onExecutionSetVariables in class FluentMock<org.camunda.bpm.engine.delegate.ExecutionListener,org.camunda.bpm.engine.delegate.DelegateExecution>
      Parameters:
      variables - the process variables this delegate sets when executed
    • onExecutionSetVariables

      public void onExecutionSetVariables(org.camunda.bpm.engine.variable.VariableMap variableMap, org.camunda.bpm.engine.variable.VariableMap... values)
      Description copied from class: FluentMock
      Sets consecutive return values to be returned when the method is called. E.g:
      
       mock.onExecutionSetVariables(variableMap1, variableMap2, variableMap3);
       
      Last return value in the sequence (in example: variableMap3) determines the behavior of further consecutive calls.

      Specified by:
      onExecutionSetVariables in class FluentMock<org.camunda.bpm.engine.delegate.ExecutionListener,org.camunda.bpm.engine.delegate.DelegateExecution>
      Parameters:
      variableMap - first variables that will be returned
      values - next variables that will be return
    • onExecutionThrowBpmnError

      public void onExecutionThrowBpmnError(org.camunda.bpm.engine.delegate.BpmnError bpmnError)
      Description copied from class: FluentMock
      The implementation of throw-bpmn-error depends on the concrete type.
      Specified by:
      onExecutionThrowBpmnError in class FluentMock<org.camunda.bpm.engine.delegate.ExecutionListener,org.camunda.bpm.engine.delegate.DelegateExecution>
      Parameters:
      bpmnError - the error instance
    • onExecutionThrowException

      public void onExecutionThrowException(Exception exception)
      Description copied from class: FluentMock
      The mock will throw the given exception on execution.
      Specified by:
      onExecutionThrowException in class FluentMock<org.camunda.bpm.engine.delegate.ExecutionListener,org.camunda.bpm.engine.delegate.DelegateExecution>
      Parameters:
      exception - the exception instance
    • notify

      public void notify(org.camunda.bpm.engine.delegate.DelegateExecution execution) throws Exception
      Specified by:
      notify in interface org.camunda.bpm.engine.delegate.DelegateListener<org.camunda.bpm.engine.delegate.DelegateExecution>
      Specified by:
      notify in interface org.camunda.bpm.engine.delegate.ExecutionListener
      Throws:
      Exception