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.expectNoScheduledDeadlines()
Asserts that no deadlines are scheduled.
|
FixtureExecutionResult |
FixtureExecutionResultImpl.expectNoScheduledDeadlines() |
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.expectScheduledEvent(Duration duration,
Object event)
Asserts that an event equal to the given ApplicationEvent 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 ApplicationEvent 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 |
WhenState.whenPublishingA(Object event)
Use this method to indicate an application is published, while recording the outcome.
|
FixtureExecutionResult |
SagaTestFixture.whenPublishingA(Object event) |
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–2018. All rights reserved.