Class CaseServiceVerification
- java.lang.Object
-
- org.camunda.community.mockito.verify.CaseServiceVerification
-
public class CaseServiceVerification extends Object
Verification of mocked service.
-
-
Constructor Summary
Constructors Constructor Description CaseServiceVerification(org.camunda.bpm.engine.CaseService caseService)Constructs the verification.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <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.voidverifyNoMoreInteractions()No 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.
-
-
-
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)
Verifies retrieval of all process variables.- Parameters:
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.
-
verifyNoMoreInteractions
public void verifyNoMoreInteractions()
No further interaction with mock.
-
-