org.axonframework.test.saga
Class RepositoryContentValidator

java.lang.Object
  extended by org.axonframework.test.saga.RepositoryContentValidator

public class RepositoryContentValidator
extends Object

Helper class for the validation of Saga Repository content.

Since:
1.1
Author:
Allard Buijze

Method Summary
 void assertActiveSagas(int expected)
          Asserts that the repsitory contains the given expected amount of active sagas.
 void assertAssociationPresent(String associationKey, String associationValue)
          Asserts that an association is present for the given associationKey and associationValue.
 void assertNoAssociationPresent(String associationKey, String associationValue)
          Asserts that no association is present for the given associationKey and associationValue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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.


Copyright © 2010-2016. All Rights Reserved.