Class RepositoryContentValidator<T>

java.lang.Object
org.axonframework.test.saga.RepositoryContentValidator<T>

public class RepositoryContentValidator<T> extends Object
Helper class for the validation of Saga Repository content.
Since:
1.1
Author:
Allard Buijze
  • Method Details

    • assertAssociationPresent

      public void assertAssociationPresent(String associationKey, String associationValue)
      Asserts that an association is present for the given associationKey and associationValue.
      Parameters:
      associationKey - The key of the association
      associationValue - The value of the association
    • assertNoAssociationPresent

      public void assertNoAssociationPresent(String associationKey, String associationValue)
      Asserts that no association is present for the given associationKey and associationValue.
      Parameters:
      associationKey - The key of the association
      associationValue - The value of the association
    • assertActiveSagas

      public void assertActiveSagas(int expected)
      Asserts that the repsitory contains the given expected amount of active sagas.
      Parameters:
      expected - The number of expected sagas.