public final class DelegateExpressions extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
autoMock(String bpmnFileResource)
Takes a BPMN resource and registers mocks for all delegateExpressions.
|
static void |
autoMock(URL bpmnFile)
Takes a BPMN file and registers TaskListener-, ExecutionListener and
JavaDelegate-Mocks for every delegateExpression encountered.
|
static FluentExecutionListenerMock |
getExecutionListenerMock(Class<?> type) |
static FluentExecutionListenerMock |
getExecutionListenerMock(String name)
Returns the registered FluentExecutionListenerMock instance for name.
|
static FluentJavaDelegateMock |
getJavaDelegateMock(Class<?> type) |
static FluentJavaDelegateMock |
getJavaDelegateMock(String name)
Returns the registered FluentJavaDelegateMock instance for name.
|
static FluentTaskListenerMock |
getTaskListenerMock(Class<?> type) |
static FluentTaskListenerMock |
getTaskListenerMock(String name)
Returns the registered FluentTaskListenerMock instance for name.
|
static FluentExecutionListenerMock |
registerExecutionListenerMock(Class<? extends org.camunda.bpm.engine.delegate.ExecutionListener> type)
Registers a new FluentExecutionListenerMock instance for name (by type).
|
static FluentExecutionListenerMock |
registerExecutionListenerMock(String name)
Registers a new FluentExecutionListenerMock instance for name.
|
static FluentJavaDelegateMock |
registerJavaDelegateMock(Class<? extends org.camunda.bpm.engine.delegate.JavaDelegate> type)
Registers a new FluentJavaDelegateMock instance for name (by type).
|
static FluentJavaDelegateMock |
registerJavaDelegateMock(String name)
Registers a new FluentJavaDelegateMock instance for name.
|
static FluentTaskListenerMock |
registerTaskListenerMock(Class<? extends org.camunda.bpm.engine.delegate.TaskListener> type)
Registers a new FluentTaskListenerMock instance for name (by type).
|
static FluentTaskListenerMock |
registerTaskListenerMock(String name)
Registers a new FluentTaskListenerMock instance for name.
|
static MockitoVerification<org.camunda.bpm.engine.delegate.DelegateExecution> |
verifyExecutionListenerMock(Class<?> type)
Gets the registered FluentExecutionListenerMock and creates a verification
instance.
|
static MockitoVerification<org.camunda.bpm.engine.delegate.DelegateExecution> |
verifyExecutionListenerMock(FluentExecutionListenerMock fluentExecutionListenerMock)
Creates a verification instance for ExecutionListener.
|
static MockitoVerification<org.camunda.bpm.engine.delegate.DelegateExecution> |
verifyExecutionListenerMock(String name)
Gets the registered FluentExecutionListenerMock and creates a verification
instance.
|
static MockitoVerification<org.camunda.bpm.engine.delegate.DelegateExecution> |
verifyJavaDelegateMock(Class<?> type)
Gets the registered FluentJavaDelegateMock and creates a verification
instance.
|
static MockitoVerification<org.camunda.bpm.engine.delegate.DelegateExecution> |
verifyJavaDelegateMock(FluentJavaDelegateMock fluentJavaDelegateMock)
Creates a verification instance for JavaDelegate.
|
static MockitoVerification<org.camunda.bpm.engine.delegate.DelegateExecution> |
verifyJavaDelegateMock(String name)
Gets the registered FluentJavaDelegateMock and creates a verification
instance.
|
static MockitoVerification<org.camunda.bpm.engine.delegate.DelegateTask> |
verifyTaskListenerMock(Class<?> type)
Gets the registered FluentExecutionListenerMock and creates a verification
instance.
|
static MockitoVerification<org.camunda.bpm.engine.delegate.DelegateTask> |
verifyTaskListenerMock(FluentTaskListenerMock fluentTaskListenerMock)
Creates a verification instance for TaskListener.
|
static MockitoVerification<org.camunda.bpm.engine.delegate.DelegateTask> |
verifyTaskListenerMock(String name)
Gets the registered FluentTaskListenerMock and creates a verification
instance.
|
public static void autoMock(@Nonnull String bpmnFileResource)
bpmnFileResource - the bpm file resource to parseautoMock(java.net.URL)public static void autoMock(@Nonnull URL bpmnFile)
This is an auto-mock feature that allows the process to run. If you need to modify the behavior of the mock, you can use the getXXX() methods to access it by its name.
bpmnFile - the BPMN resource to parsepublic static FluentJavaDelegateMock registerJavaDelegateMock(String name)
name - the name under which the instance is registeredExpressions.registerInstance(String,
Object)public static FluentJavaDelegateMock registerJavaDelegateMock(Class<? extends org.camunda.bpm.engine.delegate.JavaDelegate> type)
type - the type to registerpublic static FluentExecutionListenerMock registerExecutionListenerMock(String name)
name - the name under which the instance is registeredExpressions.registerInstance(String,
Object)public static FluentExecutionListenerMock registerExecutionListenerMock(Class<? extends org.camunda.bpm.engine.delegate.ExecutionListener> type)
type - the type to registerpublic static FluentTaskListenerMock registerTaskListenerMock(String name)
name - the name under which the instance is registeredExpressions.registerInstance(String,
Object)public static FluentTaskListenerMock registerTaskListenerMock(Class<? extends org.camunda.bpm.engine.delegate.TaskListener> type)
type - the type to registerpublic static FluentJavaDelegateMock getJavaDelegateMock(String name)
name - the name under which the instance is registeredExpressions.getRegistered(String)public static FluentJavaDelegateMock getJavaDelegateMock(Class<?> type)
public static FluentExecutionListenerMock getExecutionListenerMock(String name)
name - the name under which the instance is registeredExpressions.getRegistered(String)public static FluentExecutionListenerMock getExecutionListenerMock(Class<?> type)
public static FluentTaskListenerMock getTaskListenerMock(String name)
name - the name under which the instance is registeredExpressions.getRegistered(String)public static FluentTaskListenerMock getTaskListenerMock(Class<?> type)
public static MockitoVerification<org.camunda.bpm.engine.delegate.DelegateExecution> verifyJavaDelegateMock(String name)
name - the name under which the instance is registeredverifyJavaDelegateMock(org.camunda.bpm.extension.mockito.mock.FluentJavaDelegateMock)public static MockitoVerification<org.camunda.bpm.engine.delegate.DelegateExecution> verifyJavaDelegateMock(Class<?> type)
type - the type of the delegate to lookuppublic static MockitoVerification<org.camunda.bpm.engine.delegate.DelegateExecution> verifyJavaDelegateMock(FluentJavaDelegateMock fluentJavaDelegateMock)
fluentJavaDelegateMock - the fluent-mock instancepublic static MockitoVerification<org.camunda.bpm.engine.delegate.DelegateExecution> verifyExecutionListenerMock(String name)
name - the name under which the instance is registeredverifyJavaDelegateMock(org.camunda.bpm.extension.mockito.mock.FluentJavaDelegateMock)public static MockitoVerification<org.camunda.bpm.engine.delegate.DelegateExecution> verifyExecutionListenerMock(Class<?> type)
type - the type of the listener to lookuppublic static MockitoVerification<org.camunda.bpm.engine.delegate.DelegateExecution> verifyExecutionListenerMock(FluentExecutionListenerMock fluentExecutionListenerMock)
fluentExecutionListenerMock - the fluent-mock instancepublic static MockitoVerification<org.camunda.bpm.engine.delegate.DelegateTask> verifyTaskListenerMock(String name)
name - the name under which the instance is registeredverifyJavaDelegateMock(org.camunda.bpm.extension.mockito.mock.FluentJavaDelegateMock)public static MockitoVerification<org.camunda.bpm.engine.delegate.DelegateTask> verifyTaskListenerMock(Class<?> type)
type - the type of the listener to lookuppublic static MockitoVerification<org.camunda.bpm.engine.delegate.DelegateTask> verifyTaskListenerMock(FluentTaskListenerMock fluentTaskListenerMock)
fluentTaskListenerMock - the fluent-mock instanceCopyright © 2017 camunda services GmbH. All rights reserved.