Package org.camunda.community.mockito
Enum Class ProcessExpressions
- All Implemented Interfaces:
Serializable,Comparable<ProcessExpressions>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Method Summary
Modifier and TypeMethodDescriptionstatic org.camunda.bpm.engine.runtime.MessageCorrelationBuildermockMessageCorrelation(org.camunda.bpm.engine.RuntimeService serviceMock) Registers the mock for message correlation.static org.camunda.bpm.engine.runtime.MessageCorrelationBuildermockMessageCorrelation(org.camunda.bpm.engine.RuntimeService serviceMock, String messageName) Registers the mock for message correlation.static CallActivityMockregisterCallActivityMock(String processDefinitionKey) Registers a call activity mock for the given process definition key (without the possibility to adjust the properties of the mocked model).static CallActivityMockregisterCallActivityMock(String processDefinitionKey, CallActivityMock.MockedModelConfigurer mockedModelConfigurer) Registers a call activity mock for the given process definition key.static ProcessExpressionsReturns the enum constant of this class with the specified name.static ProcessExpressions[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
registerCallActivityMock
public static CallActivityMock registerCallActivityMock(String processDefinitionKey, CallActivityMock.MockedModelConfigurer mockedModelConfigurer) Registers a call activity mock for the given process definition key.- Parameters:
processDefinitionKey- process definition key of the called processmockedModelConfigurer- configurer for adjusting the attributes of the mocked model- Returns:
- A mock for the called process (its behaviour should be configured via further calls)
-
registerCallActivityMock
Registers a call activity mock for the given process definition key (without the possibility to adjust the properties of the mocked model).- Parameters:
processDefinitionKey- process definition key of the called process- Returns:
- A mock for the called process (its behaviour should be configured via further calls)
-
mockMessageCorrelation
public static org.camunda.bpm.engine.runtime.MessageCorrelationBuilder mockMessageCorrelation(org.camunda.bpm.engine.RuntimeService serviceMock, String messageName) Registers the mock for message correlation.- Parameters:
serviceMock- runtime service mock.messageName- name of the message to mock message correlation for.- Returns:
- mocked builder
-
mockMessageCorrelation
public static org.camunda.bpm.engine.runtime.MessageCorrelationBuilder mockMessageCorrelation(org.camunda.bpm.engine.RuntimeService serviceMock) Registers the mock for message correlation.- Parameters:
serviceMock- runtime service mock.- Returns:
- mocked builder
-