Class 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 Detail

      • FluentExecutionListenerMock

        public FluentExecutionListenerMock()
    • Method Detail

      • 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
      • 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