|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.axonframework.test.saga.EventSchedulerValidator
public class EventSchedulerValidator
Helper class for validating evets scheduled in a given event scheduler.
| Constructor Summary | |
|---|---|
EventSchedulerValidator(StubEventScheduler eventScheduler)
Initializes the validator to validate the state of the given eventScheduler. |
|
| Method Summary | |
|---|---|
void |
assertNoScheduledEvents()
Asserts that no events are scheduled for publication. |
void |
assertScheduledEventMatching(org.joda.time.DateTime scheduledTime,
org.hamcrest.Matcher<?> matcher)
Asserts that an event matching the given matcher is scheduled for publication at the given
scheduledTime. |
void |
assertScheduledEventMatching(org.joda.time.Duration duration,
org.hamcrest.Matcher<?> matcher)
Asserts that an event matching the given matcher is scheduled for publication after the given
duration. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EventSchedulerValidator(StubEventScheduler eventScheduler)
eventScheduler.
eventScheduler - The event scheduler to monitor| Method Detail |
|---|
public void assertScheduledEventMatching(org.joda.time.Duration duration,
org.hamcrest.Matcher<?> matcher)
matcher is scheduled for publication after the given
duration.
duration - The delay expected before the event is publishedmatcher - The matcher that must match with the event scheduled at the given time
public void assertScheduledEventMatching(org.joda.time.DateTime scheduledTime,
org.hamcrest.Matcher<?> matcher)
matcher is scheduled for publication at the given
scheduledTime.
scheduledTime - the time at which the event should be publishedmatcher - The matcher that must match with the event scheduled at the given timepublic void assertNoScheduledEvents()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||