Package org.axonframework.test.saga
Class RepositoryContentValidator<T>
java.lang.Object
org.axonframework.test.saga.RepositoryContentValidator<T>
Helper class for the validation of Saga Repository content.
- Since:
- 1.1
- Author:
- Allard Buijze
-
Method Summary
Modifier and TypeMethodDescriptionvoidassertActiveSagas(int expected) Asserts that the repsitory contains the givenexpectedamount of active sagas.voidassertAssociationPresent(String associationKey, String associationValue) Asserts that an association is present for the givenassociationKeyandassociationValue.voidassertNoAssociationPresent(String associationKey, String associationValue) Asserts that no association is present for the givenassociationKeyandassociationValue.
-
Method Details
-
assertAssociationPresent
Asserts that an association is present for the givenassociationKeyandassociationValue.- Parameters:
associationKey- The key of the associationassociationValue- The value of the association
-
assertNoAssociationPresent
Asserts that no association is present for the givenassociationKeyandassociationValue.- Parameters:
associationKey- The key of the associationassociationValue- The value of the association
-
assertActiveSagas
public void assertActiveSagas(int expected) Asserts that the repsitory contains the givenexpectedamount of active sagas.- Parameters:
expected- The number of expected sagas.
-