Package | Description |
---|---|
org.axonframework.test.saga |
Modifier and Type | Class and Description |
---|---|
class |
FixtureExecutionResultImpl<T>
Default implementation of FixtureExecutionResult.
|
Modifier and Type | Method and Description |
---|---|
FixtureExecutionResult |
FixtureExecutionResult.expectActiveSagas(int expected)
Expect the given number of Sagas to be active (i.e.
|
FixtureExecutionResult |
FixtureExecutionResultImpl.expectActiveSagas(int expected) |
FixtureExecutionResult |
FixtureExecutionResult.expectAssociationWith(String associationKey,
Object associationValue)
Asserts that at least one of the active sagas is associated with the given
associationKey and associationValue . |
FixtureExecutionResult |
FixtureExecutionResultImpl.expectAssociationWith(String associationKey,
Object associationValue) |
FixtureExecutionResult |
FixtureExecutionResult.expectDeadlinesMet(Object... expected)
Asserts that given
expected deadlines have been met (which have passed in time). |
FixtureExecutionResult |
FixtureExecutionResultImpl.expectDeadlinesMet(Object... expected) |
FixtureExecutionResult |
FixtureExecutionResult.expectDeadlinesMetMatching(org.hamcrest.Matcher<? extends List<? super DeadlineMessage<?>>> matcher)
Asserts that deadlines match given
matcher have been met (which have passed in time) on this saga. |
FixtureExecutionResult |
FixtureExecutionResultImpl.expectDeadlinesMetMatching(org.hamcrest.Matcher<? extends List<? super DeadlineMessage<?>>> matcher) |
FixtureExecutionResult |
FixtureExecutionResult.expectDispatchedCommands(Object... commands)
Asserts that the given commands have been dispatched in exactly the order given.
|
FixtureExecutionResult |
FixtureExecutionResultImpl.expectDispatchedCommands(Object... expected) |
FixtureExecutionResult |
FixtureExecutionResult.expectDispatchedCommandsMatching(org.hamcrest.Matcher<? extends List<? super CommandMessage<?>>> matcher)
Asserts that the sagas dispatched commands as defined by the given
matcher . |
FixtureExecutionResult |
FixtureExecutionResultImpl.expectDispatchedCommandsMatching(org.hamcrest.Matcher<? extends List<? super CommandMessage<?>>> matcher) |
FixtureExecutionResult |
FixtureExecutionResult.expectNoAssociationWith(String associationKey,
Object associationValue)
Asserts that at none of the active sagas is associated with the given
associationKey and associationValue . |
FixtureExecutionResult |
FixtureExecutionResultImpl.expectNoAssociationWith(String associationKey,
Object associationValue) |
FixtureExecutionResult |
FixtureExecutionResult.expectNoDispatchedCommands()
Asserts that the sagas did not dispatch any commands.
|
FixtureExecutionResult |
FixtureExecutionResultImpl.expectNoDispatchedCommands() |
FixtureExecutionResult |
FixtureExecutionResult.expectNoScheduledDeadline(Duration durationToScheduledTime,
Object deadline)
Asserts that no deadline equal to the given
deadline has been scheduled after the given durationToScheduledTime . |
FixtureExecutionResult |
FixtureExecutionResultImpl.expectNoScheduledDeadline(Duration durationToScheduledTime,
Object deadline) |
FixtureExecutionResult |
FixtureExecutionResult.expectNoScheduledDeadline(Instant scheduledTime,
Object deadline)
Asserts that no deadline equal to the given
deadline has been scheduled at the given scheduledTime . |
FixtureExecutionResult |
FixtureExecutionResultImpl.expectNoScheduledDeadline(Instant scheduledTime,
Object deadline) |
FixtureExecutionResult |
FixtureExecutionResult.expectNoScheduledDeadlineMatching(Duration durationToScheduledTime,
org.hamcrest.Matcher<? super DeadlineMessage<?>> matcher)
Asserts that no deadline matching the given
matcher should be scheduled after the given durationToScheduledTime . |
FixtureExecutionResult |
FixtureExecutionResultImpl.expectNoScheduledDeadlineMatching(Duration durationToScheduledTime,
org.hamcrest.Matcher<? super DeadlineMessage<?>> matcher) |
FixtureExecutionResult |
FixtureExecutionResult.expectNoScheduledDeadlineMatching(Instant scheduledTime,
org.hamcrest.Matcher<? super DeadlineMessage<?>> matcher)
Asserts that no deadline matching the given
matcher has been scheduled at the given scheduledTime . |
FixtureExecutionResult |
FixtureExecutionResultImpl.expectNoScheduledDeadlineMatching(Instant scheduledTime,
org.hamcrest.Matcher<? super DeadlineMessage<?>> matcher) |
FixtureExecutionResult |
FixtureExecutionResult.expectNoScheduledDeadlineMatching(org.hamcrest.Matcher<? super DeadlineMessage<?>> matcher)
Asserts that no deadline matching the given
matcher is scheduled. |
FixtureExecutionResult |
FixtureExecutionResultImpl.expectNoScheduledDeadlineMatching(org.hamcrest.Matcher<? super DeadlineMessage<?>> matcher) |
FixtureExecutionResult |
FixtureExecutionResult.expectNoScheduledDeadlineOfType(Duration durationToScheduledTime,
Class<?> deadlineType)
Asserts that no deadline of the given
deadlineType has been scheduled at the given durationToScheduledTime . |
FixtureExecutionResult |
FixtureExecutionResultImpl.expectNoScheduledDeadlineOfType(Duration durationToScheduledTime,
Class<?> deadlineType) |
FixtureExecutionResult |
FixtureExecutionResult.expectNoScheduledDeadlineOfType(Instant scheduledTime,
Class<?> deadlineType)
Asserts that no deadline with the given
deadlineType has been scheduled at the given scheduledTime . |
FixtureExecutionResult |
FixtureExecutionResultImpl.expectNoScheduledDeadlineOfType(Instant scheduledTime,
Class<?> deadlineType) |
FixtureExecutionResult |
FixtureExecutionResult.expectNoScheduledDeadlines()
Asserts that no deadlines are scheduled.
|
FixtureExecutionResult |
FixtureExecutionResultImpl.expectNoScheduledDeadlines() |
FixtureExecutionResult |
FixtureExecutionResult.expectNoScheduledDeadlineWithName(Duration durationToScheduledTime,
String deadlineName)
Asserts that no deadline with the given
deadlineName has been scheduled after the given durationToScheduledTime . |
FixtureExecutionResult |
FixtureExecutionResultImpl.expectNoScheduledDeadlineWithName(Duration durationToScheduledTime,
String deadlineName) |
FixtureExecutionResult |
FixtureExecutionResult.expectNoScheduledDeadlineWithName(Instant scheduledTime,
String deadlineName)
Asserts that no deadline with the given
deadlineName has been scheduled at the given scheduledTime . |
FixtureExecutionResult |
FixtureExecutionResultImpl.expectNoScheduledDeadlineWithName(Instant scheduledTime,
String deadlineName) |
FixtureExecutionResult |
FixtureExecutionResult.expectNoScheduledEvent(Duration durationToScheduledTime,
Object event)
Asserts that no event equal to the given
event has been scheduled after the given durationToScheduledTime . |
FixtureExecutionResult |
FixtureExecutionResultImpl.expectNoScheduledEvent(Duration durationToScheduledTime,
Object event) |
FixtureExecutionResult |
FixtureExecutionResult.expectNoScheduledEvent(Instant scheduledTime,
Object event)
Asserts that no event equal to the given
event has been scheduled at the given scheduledTime . |
FixtureExecutionResult |
FixtureExecutionResultImpl.expectNoScheduledEvent(Instant scheduledTime,
Object event) |
FixtureExecutionResult |
FixtureExecutionResult.expectNoScheduledEventMatching(Duration durationToScheduledTime,
org.hamcrest.Matcher<? super EventMessage<?>> matcher)
Asserts that no event matching the given
matcher has been scheduled to be published after the
given durationToScheduledTime . |
FixtureExecutionResult |
FixtureExecutionResultImpl.expectNoScheduledEventMatching(Duration durationToScheduledTime,
org.hamcrest.Matcher<? super EventMessage<?>> matcher) |
FixtureExecutionResult |
FixtureExecutionResult.expectNoScheduledEventMatching(Instant scheduledTime,
org.hamcrest.Matcher<? super EventMessage<?>> matcher)
Asserts that no event matching the given
matcher has been scheduled at the given scheduledTime . |
FixtureExecutionResult |
FixtureExecutionResultImpl.expectNoScheduledEventMatching(Instant scheduledTime,
org.hamcrest.Matcher<? super EventMessage<?>> matcher) |
FixtureExecutionResult |
FixtureExecutionResult.expectNoScheduledEventOfType(Duration durationToScheduledTime,
Class<?> eventType)
Asserts that no event of the given
eventType has been scheduled after the given durationToScheduledTime . |
FixtureExecutionResult |
FixtureExecutionResultImpl.expectNoScheduledEventOfType(Duration durationToScheduledTime,
Class<?> eventType) |
FixtureExecutionResult |
FixtureExecutionResult.expectNoScheduledEventOfType(Instant scheduledTime,
Class<?> eventType)
Asserts that no event with the given
eventType has been scheduled at the given scheduledTime . |
FixtureExecutionResult |
FixtureExecutionResultImpl.expectNoScheduledEventOfType(Instant scheduledTime,
Class<?> eventType) |
FixtureExecutionResult |
FixtureExecutionResult.expectNoScheduledEvents()
Assert that no events are scheduled for publication.
|
FixtureExecutionResult |
FixtureExecutionResultImpl.expectNoScheduledEvents() |
FixtureExecutionResult |
FixtureExecutionResult.expectPublishedEvents(Object... expected)
Assert that the saga published events on the EventBus in the exact sequence of the given
expected events. |
FixtureExecutionResult |
FixtureExecutionResultImpl.expectPublishedEvents(Object... expected) |
FixtureExecutionResult |
FixtureExecutionResult.expectPublishedEventsMatching(org.hamcrest.Matcher<? extends List<? super EventMessage<?>>> matcher)
Assert that the saga published events on the EventBus as defined by the given
matcher . |
FixtureExecutionResult |
FixtureExecutionResultImpl.expectPublishedEventsMatching(org.hamcrest.Matcher<? extends List<? super EventMessage<?>>> matcher) |
FixtureExecutionResult |
FixtureExecutionResult.expectScheduledDeadline(Duration duration,
Object deadline)
Asserts that a deadline equal to the given
deadline has been scheduled after the given duration . |
FixtureExecutionResult |
FixtureExecutionResultImpl.expectScheduledDeadline(Duration duration,
Object deadline) |
FixtureExecutionResult |
FixtureExecutionResult.expectScheduledDeadline(Instant scheduledTime,
Object deadline)
Asserts that a deadline equal to the given
deadline has been scheduled at the given scheduledTime . |
FixtureExecutionResult |
FixtureExecutionResultImpl.expectScheduledDeadline(Instant scheduledTime,
Object deadline) |
FixtureExecutionResult |
FixtureExecutionResult.expectScheduledDeadlineMatching(Duration duration,
org.hamcrest.Matcher<? super DeadlineMessage<?>> matcher)
Asserts that a deadline scheduled after given
duration matches the given matcher . |
FixtureExecutionResult |
FixtureExecutionResultImpl.expectScheduledDeadlineMatching(Duration duration,
org.hamcrest.Matcher<? super DeadlineMessage<?>> matcher) |
FixtureExecutionResult |
FixtureExecutionResult.expectScheduledDeadlineMatching(Instant scheduledTime,
org.hamcrest.Matcher<? super DeadlineMessage<?>> matcher)
Asserts that a deadline matching the given
matcher has been scheduled at the given scheduledTime . |
FixtureExecutionResult |
FixtureExecutionResultImpl.expectScheduledDeadlineMatching(Instant scheduledTime,
org.hamcrest.Matcher<? super DeadlineMessage<?>> matcher) |
FixtureExecutionResult |
FixtureExecutionResult.expectScheduledDeadlineOfType(Duration duration,
Class<?> deadlineType)
Asserts that a deadline of the given
deadlineType has been scheduled after the given duration . |
FixtureExecutionResult |
FixtureExecutionResultImpl.expectScheduledDeadlineOfType(Duration duration,
Class<?> deadlineType) |
FixtureExecutionResult |
FixtureExecutionResult.expectScheduledDeadlineOfType(Instant scheduledTime,
Class<?> deadlineType)
Asserts that a deadline of the given
deadlineType has been scheduled at the given scheduledTime . |
FixtureExecutionResult |
FixtureExecutionResultImpl.expectScheduledDeadlineOfType(Instant scheduledTime,
Class<?> deadlineType) |
FixtureExecutionResult |
FixtureExecutionResult.expectScheduledDeadlineWithName(Duration duration,
String deadlineName)
Asserts that a deadline with the given
deadlineName has been scheduled after the given duration . |
FixtureExecutionResult |
FixtureExecutionResultImpl.expectScheduledDeadlineWithName(Duration duration,
String deadlineName) |
FixtureExecutionResult |
FixtureExecutionResult.expectScheduledDeadlineWithName(Instant scheduledTime,
String deadlineName)
Asserts that a deadline with the given
deadlineName has been scheduled at the given scheduledTime . |
FixtureExecutionResult |
FixtureExecutionResultImpl.expectScheduledDeadlineWithName(Instant scheduledTime,
String deadlineName) |
FixtureExecutionResult |
FixtureExecutionResult.expectScheduledEvent(Duration duration,
Object event)
Asserts that an event equal to the given
event has been scheduled for publication after the given duration . |
FixtureExecutionResult |
FixtureExecutionResultImpl.expectScheduledEvent(Duration duration,
Object applicationEvent) |
FixtureExecutionResult |
FixtureExecutionResult.expectScheduledEvent(Instant scheduledTime,
Object event)
Asserts that an event equal to the given
event has been scheduled for publication at the given scheduledTime . |
FixtureExecutionResult |
FixtureExecutionResultImpl.expectScheduledEvent(Instant scheduledTime,
Object applicationEvent) |
FixtureExecutionResult |
FixtureExecutionResult.expectScheduledEventMatching(Duration duration,
org.hamcrest.Matcher<? super EventMessage<?>> matcher)
Asserts that an event matching the given
matcher has been scheduled to be published after the given
duration . |
FixtureExecutionResult |
FixtureExecutionResultImpl.expectScheduledEventMatching(Duration duration,
org.hamcrest.Matcher<? super EventMessage<?>> matcher) |
FixtureExecutionResult |
FixtureExecutionResult.expectScheduledEventMatching(Instant scheduledTime,
org.hamcrest.Matcher<? super EventMessage<?>> matcher)
Asserts that an event matching the given
matcher has been scheduled to be published at the given scheduledTime . |
FixtureExecutionResult |
FixtureExecutionResultImpl.expectScheduledEventMatching(Instant scheduledTime,
org.hamcrest.Matcher<? super EventMessage<?>> matcher) |
FixtureExecutionResult |
FixtureExecutionResult.expectScheduledEventOfType(Duration duration,
Class<?> eventType)
Asserts that an event of the given
eventType has been scheduled for publication after the given duration . |
FixtureExecutionResult |
FixtureExecutionResultImpl.expectScheduledEventOfType(Duration duration,
Class<?> eventType) |
FixtureExecutionResult |
FixtureExecutionResult.expectScheduledEventOfType(Instant scheduledTime,
Class<?> eventType)
Asserts that an event of the given
eventType has been scheduled for publication at the given scheduledTime . |
FixtureExecutionResult |
FixtureExecutionResultImpl.expectScheduledEventOfType(Instant scheduledTime,
Class<?> eventType) |
FixtureExecutionResult |
WhenAggregateEventPublisher.publishes(Object event)
Register the given
event to be published on behalf of an aggregate. |
FixtureExecutionResult |
WhenAggregateEventPublisher.publishes(Object event,
Map<String,?> metaData)
Register the given
event to be published on behalf of an aggregate, with given additional metaData . |
FixtureExecutionResult |
SagaTestFixture.whenPublishingA(Object event) |
FixtureExecutionResult |
WhenState.whenPublishingA(Object event)
Use this method to indicate an application is published, while recording the outcome.
|
FixtureExecutionResult |
SagaTestFixture.whenPublishingA(Object event,
Map<String,?> metaData) |
FixtureExecutionResult |
WhenState.whenPublishingA(Object event,
Map<String,?> metaData)
Use this method to indicate an application is published with given additional
metaData ,
while recording the outcome. |
FixtureExecutionResult |
SagaTestFixture.whenTimeAdvancesTo(Instant newDateTime) |
FixtureExecutionResult |
WhenState.whenTimeAdvancesTo(Instant newDateTime)
Mimic an elapsed time with no relevant activity for the Saga.
|
FixtureExecutionResult |
SagaTestFixture.whenTimeElapses(Duration elapsedTime) |
FixtureExecutionResult |
WhenState.whenTimeElapses(Duration elapsedTime)
Mimic an elapsed time with no relevant activity for the Saga.
|
Copyright © 2010–2020. All rights reserved.