Class RuntimeServiceVerification
java.lang.Object
org.camunda.community.mockito.verify.RuntimeServiceVerification
Verification of mocked service.
-
Constructor Summary
ConstructorsConstructorDescriptionRuntimeServiceVerification(org.camunda.bpm.engine.RuntimeService runtimeService) Constructs the verification. -
Method Summary
Modifier and TypeMethodDescription<T> voidverifyGet(io.holunda.camunda.bpm.data.factory.VariableFactory<T> variableFactory, String executionId) Verifies if the variable has been retrieved from a global scope.<T> voidverifyGet(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> voidverifyGetLocal(io.holunda.camunda.bpm.data.factory.VariableFactory<T> variableFactory, String executionId) Verifies if the variable has been retrieved from a local scope.<T> voidverifyGetLocal(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.voidverifyGetVariables(String executionId) Verifies retrieval of all process variables.voidverifyGetVariables(String executionId, org.mockito.verification.VerificationMode mode) Verifies retrieval of all process variables.voidNo further interaction with mock.<T> voidverifyRemove(io.holunda.camunda.bpm.data.factory.VariableFactory<T> variableFactory, String executionId) Verifies if the variable has been removed from a global scope.<T> voidverifyRemove(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> voidverifyRemoveLocal(io.holunda.camunda.bpm.data.factory.VariableFactory<T> variableFactory, String executionId) Verifies if the variable has been removed from a local scope.<T> voidverifyRemoveLocal(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> voidverifySet(io.holunda.camunda.bpm.data.factory.VariableFactory<T> variableFactory, T value, String executionId) Verifies if the variable has been set globally.<T> voidverifySet(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> voidverifySetLocal(io.holunda.camunda.bpm.data.factory.VariableFactory<T> variableFactory, T value, String executionId) Verifies if the variable has been set locally.<T> voidverifySetLocal(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 Details
-
RuntimeServiceVerification
public RuntimeServiceVerification(org.camunda.bpm.engine.RuntimeService runtimeService) Constructs the verification.- Parameters:
runtimeService- service mock.
-
-
Method Details
-
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
Verifies retrieval of all process variables.- Parameters:
executionId- execution id.mode- verification mode.
-
verifyGetVariables
Verifies retrieval of all process variables.- Parameters:
executionId- execution id.
-
verifyNoMoreInteractions
public void verifyNoMoreInteractions()No further interaction with mock.
-