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 |
FixtureExecutionResultImpl.expectActiveSagas(int expected) |
FixtureExecutionResult |
FixtureExecutionResult.expectActiveSagas(int expected)
Expect the given number of Sagas to be active (i.e.
|
FixtureExecutionResult |
FixtureExecutionResultImpl.expectAssociationWith(String associationKey,
Object associationValue) |
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.expectDeadlinesMet(Object... expected) |
FixtureExecutionResult |
FixtureExecutionResult.expectDeadlinesMet(Object... expected)
Deprecated.
in favor of
expectTriggeredDeadlines(Object...) |
FixtureExecutionResult |
FixtureExecutionResultImpl.expectDeadlinesMetMatching(org.hamcrest.Matcher<? extends List<? super DeadlineMessage<?>>> matcher) |
FixtureExecutionResult |
FixtureExecutionResult.expectDeadlinesMetMatching(org.hamcrest.Matcher<? extends List<? super DeadlineMessage<?>>> matcher)
Deprecated.
in favor of
expectTriggeredDeadlinesMatching(Matcher) |
FixtureExecutionResult |
FixtureExecutionResultImpl.expectDispatchedCommands(Object... expected) |
FixtureExecutionResult |
FixtureExecutionResult.expectDispatchedCommands(Object... commands)
Asserts that the given commands have been dispatched in exactly the order given.
|
FixtureExecutionResult |
FixtureExecutionResultImpl.expectDispatchedCommandsMatching(org.hamcrest.Matcher<? extends List<? super CommandMessage<?>>> matcher) |
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.expectNoAssociationWith(String associationKey,
Object associationValue) |
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.expectNoDispatchedCommands() |
FixtureExecutionResult |
FixtureExecutionResult.expectNoDispatchedCommands()
Asserts that the sagas did not dispatch any commands.
|
FixtureExecutionResult |
FixtureExecutionResultImpl.expectNoScheduledDeadline(Duration durationToScheduledTime,
Object deadline) |
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(Instant from,
Instant to,
Object deadline) |
FixtureExecutionResult |
FixtureExecutionResult.expectNoScheduledDeadline(Instant from,
Instant to,
Object deadline)
Asserts that no deadline equal to the given
deadline has been scheduled between the to and from times, where to
and from are inclusive. |
FixtureExecutionResult |
FixtureExecutionResultImpl.expectNoScheduledDeadline(Instant scheduledTime,
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.expectNoScheduledDeadlineMatching(Duration durationToScheduledTime,
org.hamcrest.Matcher<? super DeadlineMessage<?>> matcher) |
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(Instant from,
Instant to,
org.hamcrest.Matcher<? super DeadlineMessage<?>> matcher) |
FixtureExecutionResult |
FixtureExecutionResult.expectNoScheduledDeadlineMatching(Instant from,
Instant to,
org.hamcrest.Matcher<? super DeadlineMessage<?>> matcher)
Asserts that no deadline matching the given
matcher has been scheduled between the to and from times, where to and
from are inclusive. |
FixtureExecutionResult |
FixtureExecutionResultImpl.expectNoScheduledDeadlineMatching(Instant scheduledTime,
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(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.expectNoScheduledDeadlineOfType(Duration durationToScheduledTime,
Class<?> deadlineType) |
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(Instant scheduledTime,
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 from,
Instant to,
Class<?> deadlineType) |
FixtureExecutionResult |
FixtureExecutionResult.expectNoScheduledDeadlineOfType(Instant from,
Instant to,
Class<?> deadlineType)
Asserts that no deadline with the given
deadlineType has been scheduled between the to and from times, where to
and from are inclusive. |
FixtureExecutionResult |
FixtureExecutionResultImpl.expectNoScheduledDeadlines() |
FixtureExecutionResult |
FixtureExecutionResult.expectNoScheduledDeadlines()
Asserts that no deadlines are scheduled.
|
FixtureExecutionResult |
FixtureExecutionResultImpl.expectNoScheduledDeadlineWithName(Duration durationToScheduledTime,
String deadlineName) |
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(Instant from,
Instant to,
String deadlineName) |
FixtureExecutionResult |
FixtureExecutionResult.expectNoScheduledDeadlineWithName(Instant from,
Instant to,
String deadlineName)
Asserts that no deadline with the given
deadlineName has been scheduled between the to and from times, where to
and from are inclusive. |
FixtureExecutionResult |
FixtureExecutionResultImpl.expectNoScheduledDeadlineWithName(Instant scheduledTime,
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.expectNoScheduledEvent(Duration durationToScheduledTime,
Object event) |
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(Instant scheduledTime,
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.expectNoScheduledEventMatching(Duration durationToScheduledTime,
org.hamcrest.Matcher<? super EventMessage<?>> matcher) |
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(Instant scheduledTime,
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.expectNoScheduledEventOfType(Duration durationToScheduledTime,
Class<?> eventType) |
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(Instant scheduledTime,
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.expectNoScheduledEvents() |
FixtureExecutionResult |
FixtureExecutionResult.expectNoScheduledEvents()
Assert that no events are scheduled for publication.
|
FixtureExecutionResult |
FixtureExecutionResultImpl.expectPublishedEvents(Object... expected) |
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.expectPublishedEventsMatching(org.hamcrest.Matcher<? extends List<? super EventMessage<?>>> matcher) |
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.expectScheduledDeadline(Duration duration,
Object deadline) |
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(Instant scheduledTime,
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.expectScheduledDeadlineMatching(Duration duration,
org.hamcrest.Matcher<? super DeadlineMessage<?>> matcher) |
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(Instant scheduledTime,
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.expectScheduledDeadlineOfType(Duration duration,
Class<?> deadlineType) |
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(Instant scheduledTime,
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.expectScheduledDeadlineWithName(Duration duration,
String deadlineName) |
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(Instant scheduledTime,
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.expectScheduledEvent(Duration duration,
Object applicationEvent) |
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(Instant scheduledTime,
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.expectScheduledEventMatching(Duration duration,
org.hamcrest.Matcher<? super EventMessage<?>> matcher) |
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(Instant scheduledTime,
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.expectScheduledEventOfType(Duration duration,
Class<?> eventType) |
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(Instant scheduledTime,
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.expectSuccessfulHandlerExecution() |
FixtureExecutionResult |
FixtureExecutionResult.expectSuccessfulHandlerExecution()
Expect a successful execution of the given event handler.
|
FixtureExecutionResult |
FixtureExecutionResultImpl.expectTriggeredDeadlines(Object... expected) |
FixtureExecutionResult |
FixtureExecutionResult.expectTriggeredDeadlines(Object... expected)
Asserts that given
expected deadlines have been triggered. |
FixtureExecutionResult |
FixtureExecutionResultImpl.expectTriggeredDeadlinesMatching(org.hamcrest.Matcher<? extends List<? super DeadlineMessage<?>>> matcher) |
FixtureExecutionResult |
FixtureExecutionResult.expectTriggeredDeadlinesMatching(org.hamcrest.Matcher<? extends List<? super DeadlineMessage<?>>> matcher)
Asserts that deadlines matching the given
matcher have been triggered for this aggregate. |
FixtureExecutionResult |
FixtureExecutionResultImpl.expectTriggeredDeadlinesOfType(Class<?>... expectedDeadlineTypes) |
FixtureExecutionResult |
FixtureExecutionResult.expectTriggeredDeadlinesOfType(Class<?>... expectedDeadlineTypes)
Asserts that the given
expectedDeadlineTypes have been triggered. |
FixtureExecutionResult |
FixtureExecutionResultImpl.expectTriggeredDeadlinesWithName(String... expectedDeadlineNames) |
FixtureExecutionResult |
FixtureExecutionResult.expectTriggeredDeadlinesWithName(String... expectedDeadlineNames)
Asserts that the given
expectedDeadlineNames have been triggered. |
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 |
WhenState.whenPublishingA(Object event)
Use this method to indicate an application is published, while recording the outcome.
|
FixtureExecutionResult |
SagaTestFixture.whenPublishingA(Object event) |
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.whenPublishingA(Object event,
Map<String,?> metaData) |
FixtureExecutionResult |
WhenState.whenTimeAdvancesTo(Instant newDateTime)
Mimic an elapsed time with no relevant activity for the Saga.
|
FixtureExecutionResult |
SagaTestFixture.whenTimeAdvancesTo(Instant newDateTime) |
FixtureExecutionResult |
WhenState.whenTimeElapses(Duration elapsedTime)
Mimic an elapsed time with no relevant activity for the Saga.
|
FixtureExecutionResult |
SagaTestFixture.whenTimeElapses(Duration elapsedTime) |
Copyright © 2010–2024. All rights reserved.