Class TaskServiceVerification


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

      Constructors 
      Constructor Description
      TaskServiceVerification​(org.camunda.bpm.engine.TaskService taskService)
      Constructs the verification.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void verifyComplete​(String taskId)
      Verifies if the task has been completed without variables.
      void verifyComplete​(org.camunda.bpm.engine.variable.VariableMap variables, String taskId)
      Verifies if the task has been completed with variables.
      <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

      • TaskServiceVerification

        public TaskServiceVerification​(org.camunda.bpm.engine.TaskService taskService)
        Constructs the verification.
        Parameters:
        taskService - 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.
      • verifyComplete

        public void verifyComplete​(String taskId)
        Verifies if the task has been completed without variables.
        Parameters:
        taskId - task id.
      • verifyComplete

        public void verifyComplete​(org.camunda.bpm.engine.variable.VariableMap variables,
                                   String taskId)
        Verifies if the task has been completed with variables.
        Parameters:
        taskId - task id.
        variables - variables to complete the task.
      • verifyNoMoreInteractions

        public void verifyNoMoreInteractions()
        No further interaction with mock.