Enum Class ProcessExpressions

java.lang.Object
java.lang.Enum<ProcessExpressions>
org.camunda.community.mockito.ProcessExpressions
All Implemented Interfaces:
Serializable, Comparable<ProcessExpressions>, Constable

public enum ProcessExpressions extends Enum<ProcessExpressions>
  • Method Details

    • values

      public static ProcessExpressions[] 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

      public static ProcessExpressions valueOf(String name)
      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 name
      NullPointerException - 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 process
      mockedModelConfigurer - 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

      public static CallActivityMock registerCallActivityMock(String processDefinitionKey)
      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