Class RuntimeServiceVerification


  • public class RuntimeServiceVerification
    extends Object
    Verification of mocked service.
    • Constructor Summary

      Constructors 
      Constructor Description
      RuntimeServiceVerification​(org.camunda.bpm.engine.RuntimeService runtimeService)
      Constructs the verification.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> void verifyGet​(io.holunda.camunda.bpm.data.factory.VariableFactory<T> variableFactory, String executionId)
      Verifies if the variable has been retrieved from a global scope.
      <T> void verifyGet​(io.holunda.camunda.bpm.data.factory.VariableFactory<T> variableFactory, String executionId, org.mockito.verification.VerificationMode mode)
      Verifies if the variable has been retrieved from a global scope.
      <T> void verifyGetLocal​(io.holunda.camunda.bpm.data.factory.VariableFactory<T> variableFactory, String executionId)
      Verifies if the variable has been retrieved from a local scope.
      <T> void verifyGetLocal​(io.holunda.camunda.bpm.data.factory.VariableFactory<T> variableFactory, String executionId, org.mockito.verification.VerificationMode mode)
      Verifies if the variable has been retrieved from a local scope.
      void verifyGetVariables​(String executionId)
      Verifies retrieval of all process variables.
      void verifyGetVariables​(String executionId, org.mockito.verification.VerificationMode mode)
      Verifies retrieval of all process variables.
      void verifyNoMoreInteractions()
      No further interaction with mock.
      <T> void verifyRemove​(io.holunda.camunda.bpm.data.factory.VariableFactory<T> variableFactory, String executionId)
      Verifies if the variable has been removed from a global scope.
      <T> void verifyRemove​(io.holunda.camunda.bpm.data.factory.VariableFactory<T> variableFactory, String executionId, org.mockito.verification.VerificationMode mode)
      Verifies if the variable has been removed from a global scope.
      <T> void verifyRemoveLocal​(io.holunda.camunda.bpm.data.factory.VariableFactory<T> variableFactory, String executionId)
      Verifies if the variable has been removed from a local scope.
      <T> void verifyRemoveLocal​(io.holunda.camunda.bpm.data.factory.VariableFactory<T> variableFactory, String executionId, org.mockito.verification.VerificationMode mode)
      Verifies if the variable has been removed from a local scope.
      <T> void verifySet​(io.holunda.camunda.bpm.data.factory.VariableFactory<T> variableFactory, T value, String executionId)
      Verifies if the variable has been set globally.
      <T> void verifySet​(io.holunda.camunda.bpm.data.factory.VariableFactory<T> variableFactory, T value, String executionId, org.mockito.verification.VerificationMode mode)
      Verifies if the variable has been set globally.
      <T> void verifySetLocal​(io.holunda.camunda.bpm.data.factory.VariableFactory<T> variableFactory, T value, String executionId)
      Verifies if the variable has been set locally.
      <T> void verifySetLocal​(io.holunda.camunda.bpm.data.factory.VariableFactory<T> variableFactory, T value, String executionId, org.mockito.verification.VerificationMode mode)
      Verifies if the variable has been set locally.
    • Constructor Detail

      • RuntimeServiceVerification

        public RuntimeServiceVerification​(org.camunda.bpm.engine.RuntimeService runtimeService)
        Constructs the verification.
        Parameters:
        runtimeService - service mock.
    • Method Detail

      • verifyGet

        public <T> void verifyGet​(io.holunda.camunda.bpm.data.factory.VariableFactory<T> variableFactory,
                                  String executionId,
                                  org.mockito.verification.VerificationMode mode)
        Verifies if the variable has been retrieved from a global scope.
        Type Parameters:
        T - type of variable.
        Parameters:
        variableFactory - factory defining the variable.
        executionId - execution id.
        mode - mockito verification mode.
      • verifyGet

        public <T> void verifyGet​(io.holunda.camunda.bpm.data.factory.VariableFactory<T> variableFactory,
                                  String executionId)
        Verifies if the variable has been retrieved from a global scope.
        Type Parameters:
        T - type of variable.
        Parameters:
        variableFactory - factory defining the variable.
        executionId - execution id.
      • verifyGetLocal

        public <T> void verifyGetLocal​(io.holunda.camunda.bpm.data.factory.VariableFactory<T> variableFactory,
                                       String executionId,
                                       org.mockito.verification.VerificationMode mode)
        Verifies if the variable has been retrieved from a local scope.
        Type Parameters:
        T - type of variable.
        Parameters:
        variableFactory - factory defining the variable.
        executionId - execution id.
        mode - mockito verification mode.
      • verifyGetLocal

        public <T> void verifyGetLocal​(io.holunda.camunda.bpm.data.factory.VariableFactory<T> variableFactory,
                                       String executionId)
        Verifies if the variable has been retrieved from a local scope.
        Type Parameters:
        T - type of variable.
        Parameters:
        variableFactory - factory defining the variable.
        executionId - execution id.
      • verifySet

        public <T> void verifySet​(io.holunda.camunda.bpm.data.factory.VariableFactory<T> variableFactory,
                                  T value,
                                  String executionId,
                                  org.mockito.verification.VerificationMode mode)
        Verifies if the variable has been set globally.
        Type Parameters:
        T - type of variable.
        Parameters:
        variableFactory - factory defining the variable.
        value - value to set.
        executionId - execution id.
        mode - verification mode.
      • verifySet

        public <T> void verifySet​(io.holunda.camunda.bpm.data.factory.VariableFactory<T> variableFactory,
                                  T value,
                                  String executionId)
        Verifies if the variable has been set globally.
        Type Parameters:
        T - type of variable.
        Parameters:
        variableFactory - factory defining the variable.
        value - value to set.
        executionId - execution id.
      • verifySetLocal

        public <T> void verifySetLocal​(io.holunda.camunda.bpm.data.factory.VariableFactory<T> variableFactory,
                                       T value,
                                       String executionId,
                                       org.mockito.verification.VerificationMode mode)
        Verifies if the variable has been set locally.
        Type Parameters:
        T - type of variable.
        Parameters:
        variableFactory - factory defining the variable.
        value - value to set.
        executionId - execution id.
        mode - verification mode.
      • verifySetLocal

        public <T> void verifySetLocal​(io.holunda.camunda.bpm.data.factory.VariableFactory<T> variableFactory,
                                       T value,
                                       String executionId)
        Verifies if the variable has been set locally.
        Type Parameters:
        T - type of variable.
        Parameters:
        variableFactory - factory defining the variable.
        value - value to set.
        executionId - execution id.
      • verifyRemove

        public <T> void verifyRemove​(io.holunda.camunda.bpm.data.factory.VariableFactory<T> variableFactory,
                                     String executionId,
                                     org.mockito.verification.VerificationMode mode)
        Verifies if the variable has been removed from a global scope.
        Type Parameters:
        T - type of variable.
        Parameters:
        variableFactory - factory defining the variable.
        executionId - execution id.
        mode - verification mode.
      • verifyRemove

        public <T> void verifyRemove​(io.holunda.camunda.bpm.data.factory.VariableFactory<T> variableFactory,
                                     String executionId)
        Verifies if the variable has been removed from a global scope.
        Type Parameters:
        T - type of variable.
        Parameters:
        variableFactory - factory defining the variable.
        executionId - execution id.
      • verifyRemoveLocal

        public <T> void verifyRemoveLocal​(io.holunda.camunda.bpm.data.factory.VariableFactory<T> variableFactory,
                                          String executionId,
                                          org.mockito.verification.VerificationMode mode)
        Verifies if the variable has been removed from a local scope.
        Type Parameters:
        T - type of variable.
        Parameters:
        variableFactory - factory defining the variable.
        executionId - execution id.
        mode - verification mode.
      • verifyRemoveLocal

        public <T> void verifyRemoveLocal​(io.holunda.camunda.bpm.data.factory.VariableFactory<T> variableFactory,
                                          String executionId)
        Verifies if the variable has been removed from a local scope.
        Type Parameters:
        T - type of variable.
        Parameters:
        variableFactory - factory defining the variable.
        executionId - execution id.
      • verifyGetVariables

        public void verifyGetVariables​(String executionId,
                                       org.mockito.verification.VerificationMode mode)
        Verifies retrieval of all process variables.
        Parameters:
        executionId - execution id.
        mode - verification mode.
      • verifyGetVariables

        public void verifyGetVariables​(String executionId)
        Verifies retrieval of all process variables.
        Parameters:
        executionId - execution id.
      • verifyNoMoreInteractions

        public void verifyNoMoreInteractions()
        No further interaction with mock.