public interface FixtureExecutionResult
Modifier and Type | Method and Description |
---|---|
FixtureExecutionResult |
expectActiveSagas(int expected)
Expect the given number of Sagas to be active (i.e.
|
FixtureExecutionResult |
expectAssociationWith(String associationKey,
Object associationValue)
Asserts that at least one of the active sagas is associated with the given
associationKey and associationValue . |
FixtureExecutionResult |
expectDeadlinesMet(Object... expected)
Deprecated.
in favor of
expectTriggeredDeadlines(Object...) |
FixtureExecutionResult |
expectDeadlinesMetMatching(org.hamcrest.Matcher<? extends List<? super DeadlineMessage<?>>> matcher)
Deprecated.
in favor of
expectTriggeredDeadlinesMatching(Matcher) |
FixtureExecutionResult |
expectDispatchedCommands(Object... commands)
Asserts that the given commands have been dispatched in exactly the order given.
|
FixtureExecutionResult |
expectDispatchedCommandsMatching(org.hamcrest.Matcher<? extends List<? super CommandMessage<?>>> matcher)
Asserts that the sagas dispatched commands as defined by the given
matcher . |
FixtureExecutionResult |
expectNoAssociationWith(String associationKey,
Object associationValue)
Asserts that at none of the active sagas is associated with the given
associationKey and associationValue . |
FixtureExecutionResult |
expectNoDispatchedCommands()
Asserts that the sagas did not dispatch any commands.
|
FixtureExecutionResult |
expectNoScheduledDeadline(Duration durationToScheduledTime,
Object deadline)
Asserts that no deadline equal to the given
deadline has been scheduled after the given durationToScheduledTime . |
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 |
expectNoScheduledDeadline(Instant scheduledTime,
Object deadline)
Asserts that no deadline equal to the given
deadline has been scheduled at the given scheduledTime . |
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 |
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 |
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 |
expectNoScheduledDeadlineMatching(org.hamcrest.Matcher<? super DeadlineMessage<?>> matcher)
Asserts that no deadline matching the given
matcher is scheduled. |
FixtureExecutionResult |
expectNoScheduledDeadlineOfType(Duration durationToScheduledTime,
Class<?> deadlineType)
Asserts that no deadline of the given
deadlineType has been scheduled at the given durationToScheduledTime . |
FixtureExecutionResult |
expectNoScheduledDeadlineOfType(Instant scheduledTime,
Class<?> deadlineType)
Asserts that no deadline with the given
deadlineType has been scheduled at the given scheduledTime . |
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 |
expectNoScheduledDeadlines()
Asserts that no deadlines are scheduled.
|
FixtureExecutionResult |
expectNoScheduledDeadlineWithName(Duration durationToScheduledTime,
String deadlineName)
Asserts that no deadline with the given
deadlineName has been scheduled after the given durationToScheduledTime . |
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 |
expectNoScheduledDeadlineWithName(Instant scheduledTime,
String deadlineName)
Asserts that no deadline with the given
deadlineName has been scheduled at the given scheduledTime . |
FixtureExecutionResult |
expectNoScheduledEvent(Duration durationToScheduledTime,
Object event)
Asserts that no event equal to the given
event has been scheduled after the given durationToScheduledTime . |
FixtureExecutionResult |
expectNoScheduledEvent(Instant scheduledTime,
Object event)
Asserts that no event equal to the given
event has been scheduled at the given scheduledTime . |
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 |
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 |
expectNoScheduledEventOfType(Duration durationToScheduledTime,
Class<?> eventType)
Asserts that no event of the given
eventType has been scheduled after the given durationToScheduledTime . |
FixtureExecutionResult |
expectNoScheduledEventOfType(Instant scheduledTime,
Class<?> eventType)
Asserts that no event with the given
eventType has been scheduled at the given scheduledTime . |
FixtureExecutionResult |
expectNoScheduledEvents()
Assert that no events are scheduled for publication.
|
FixtureExecutionResult |
expectPublishedEvents(Object... expected)
Assert that the saga published events on the EventBus in the exact sequence of the given
expected events. |
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 |
expectScheduledDeadline(Duration duration,
Object deadline)
Asserts that a deadline equal to the given
deadline has been scheduled after the given duration . |
FixtureExecutionResult |
expectScheduledDeadline(Instant scheduledTime,
Object deadline)
Asserts that a deadline equal to the given
deadline has been scheduled at the given scheduledTime . |
FixtureExecutionResult |
expectScheduledDeadlineMatching(Duration duration,
org.hamcrest.Matcher<? super DeadlineMessage<?>> matcher)
Asserts that a deadline scheduled after given
duration matches the given matcher . |
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 |
expectScheduledDeadlineOfType(Duration duration,
Class<?> deadlineType)
Asserts that a deadline of the given
deadlineType has been scheduled after the given duration . |
FixtureExecutionResult |
expectScheduledDeadlineOfType(Instant scheduledTime,
Class<?> deadlineType)
Asserts that a deadline of the given
deadlineType has been scheduled at the given scheduledTime . |
FixtureExecutionResult |
expectScheduledDeadlineWithName(Duration duration,
String deadlineName)
Asserts that a deadline with the given
deadlineName has been scheduled after the given duration . |
FixtureExecutionResult |
expectScheduledDeadlineWithName(Instant scheduledTime,
String deadlineName)
Asserts that a deadline with the given
deadlineName has been scheduled at the given scheduledTime . |
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 |
expectScheduledEvent(Instant scheduledTime,
Object event)
Asserts that an event equal to the given
event has been scheduled for publication at the given scheduledTime . |
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 |
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 |
expectScheduledEventOfType(Duration duration,
Class<?> eventType)
Asserts that an event of the given
eventType has been scheduled for publication after the given duration . |
FixtureExecutionResult |
expectScheduledEventOfType(Instant scheduledTime,
Class<?> eventType)
Asserts that an event of the given
eventType has been scheduled for publication at the given scheduledTime . |
FixtureExecutionResult |
expectSuccessfulHandlerExecution()
Expect a successful execution of the given event handler.
|
FixtureExecutionResult |
expectTriggeredDeadlines(Object... expected)
Asserts that given
expected deadlines have been triggered. |
FixtureExecutionResult |
expectTriggeredDeadlinesMatching(org.hamcrest.Matcher<? extends List<? super DeadlineMessage<?>>> matcher)
Asserts that deadlines matching the given
matcher have been triggered for this aggregate. |
FixtureExecutionResult |
expectTriggeredDeadlinesOfType(Class<?>... expectedDeadlineTypes)
Asserts that the given
expectedDeadlineTypes have been triggered. |
FixtureExecutionResult |
expectTriggeredDeadlinesWithName(String... expectedDeadlineNames)
Asserts that the given
expectedDeadlineNames have been triggered. |
FixtureExecutionResult expectActiveSagas(int expected)
expected
- the expected number of active events in the repositoryFixtureExecutionResult expectAssociationWith(String associationKey, Object associationValue)
associationKey
and associationValue
.associationKey
- The key of the association to verifyassociationValue
- The value of the association to verifyFixtureExecutionResult expectNoAssociationWith(String associationKey, Object associationValue)
associationKey
and associationValue
.associationKey
- The key of the association to verifyassociationValue
- The value of the association to verifyFixtureExecutionResult expectScheduledEventMatching(Duration duration, org.hamcrest.Matcher<? super EventMessage<?>> matcher)
matcher
has been scheduled to be published after the given
duration
.duration
- The time to wait before the event should be publishedmatcher
- A matcher defining the event expected to be publishedFixtureExecutionResult expectScheduledDeadlineMatching(Duration duration, org.hamcrest.Matcher<? super DeadlineMessage<?>> matcher)
duration
matches the given matcher
.duration
- The delay expected before the deadline is metmatcher
- The matcher that must match with the deadline scheduled at the given timeFixtureExecutionResult expectScheduledEvent(Duration duration, Object event)
event
has been scheduled for publication after the given duration
.
Note that the source attribute of the event is ignored when comparing events. Events are compared using an
"equals" check on all fields in the events.duration
- The time to wait before the event should be publishedevent
- The expected eventFixtureExecutionResult expectScheduledDeadline(Duration duration, Object deadline)
deadline
has been scheduled after the given duration
.
Note that the source attribute of the deadline is ignored when comparing deadlines. Deadlines are compared using
an "equals" check on all fields in the deadlines.duration
- The time to wait before the deadline should be metdeadline
- The expected deadlineFixtureExecutionResult expectScheduledEventOfType(Duration duration, Class<?> eventType)
eventType
has been scheduled for publication after the given duration
.duration
- The time to wait before the event should be publishedeventType
- The type of the expected eventFixtureExecutionResult expectScheduledDeadlineOfType(Duration duration, Class<?> deadlineType)
deadlineType
has been scheduled after the given duration
.duration
- The time to wait before the deadline is metdeadlineType
- The type of the expected deadlineFixtureExecutionResult expectScheduledDeadlineWithName(Duration duration, String deadlineName)
deadlineName
has been scheduled after the given duration
.duration
- the time to wait before the deadline is metdeadlineName
- the name of the expected deadlineFixtureExecutionResult expectScheduledEventMatching(Instant scheduledTime, org.hamcrest.Matcher<? super EventMessage<?>> matcher)
matcher
has been scheduled to be published at the given scheduledTime
.
If the scheduledTime
is calculated based on the "current time", use the FixtureConfiguration.currentTime()
to get the time to use as "current time".scheduledTime
- The time at which the event should be publishedmatcher
- A matcher defining the event expected to be publishedFixtureExecutionResult expectScheduledDeadlineMatching(Instant scheduledTime, org.hamcrest.Matcher<? super DeadlineMessage<?>> matcher)
matcher
has been scheduled at the given scheduledTime
.
If the scheduledTime
is calculated based on the "current time", use the FixtureConfiguration.currentTime()
to get the time to use as "current time".scheduledTime
- The time at which the deadline should be metmatcher
- The matcher defining the deadline expectedFixtureExecutionResult expectScheduledEvent(Instant scheduledTime, Object event)
event
has been scheduled for publication at the given scheduledTime
.
If the scheduledTime
is calculated based on the "current time", use the FixtureConfiguration.currentTime()
to get the time to use as "current time".
Note that the source attribute of the event is ignored when comparing events. Events are compared using an
"equals" check on all fields in the events.scheduledTime
- The time at which the event should be publishedevent
- The expected eventFixtureExecutionResult expectScheduledDeadline(Instant scheduledTime, Object deadline)
deadline
has been scheduled at the given scheduledTime
.
If the scheduledTime
is calculated based on the "current time", use the FixtureConfiguration.currentTime()
to get the time to use as "current time".
Note that the source attribute of the deadline is ignored when comparing deadlines. Deadlines are compared using
an "equals" check on all fields in the deadlines.scheduledTime
- The time at which the deadline is scheduleddeadline
- The expected deadlineFixtureExecutionResult expectScheduledEventOfType(Instant scheduledTime, Class<?> eventType)
eventType
has been scheduled for publication at the given scheduledTime
.
If the scheduledTime
is calculated based on the "current time", use the FixtureConfiguration.currentTime()
to get the time to use as "current time".scheduledTime
- The time at which the event should be publishedeventType
- The type of the expected eventFixtureExecutionResult expectScheduledDeadlineOfType(Instant scheduledTime, Class<?> deadlineType)
deadlineType
has been scheduled at the given scheduledTime
.scheduledTime
- The time at which the deadline is scheduleddeadlineType
- The type of the expected deadlineFixtureExecutionResult expectScheduledDeadlineWithName(Instant scheduledTime, String deadlineName)
deadlineName
has been scheduled at the given scheduledTime
.scheduledTime
- the time at which the deadline is scheduleddeadlineName
- the name of the expected deadlineFixtureExecutionResult expectDispatchedCommands(Object... commands)
If exact order doesn't matter, or the validation needs be done in another way than "equal payload", consider
using expectDispatchedCommandsMatching(Matcher)
instead.
commands
- The expected commandsFixtureExecutionResult expectDispatchedCommandsMatching(org.hamcrest.Matcher<? extends List<? super CommandMessage<?>>> matcher)
matcher
. Only commands as a result of
the event in the "when" stage of the fixture are matched.matcher
- The matcher that describes the expected list of commandsFixtureExecutionResult expectNoDispatchedCommands()
FixtureExecutionResult expectNoScheduledEvents()
FixtureExecutionResult expectNoScheduledEventMatching(Duration durationToScheduledTime, org.hamcrest.Matcher<? super EventMessage<?>> matcher)
matcher
has been scheduled to be published after the
given durationToScheduledTime
.durationToScheduledTime
- the time to wait until the trigger point of the event which should not be
scheduledmatcher
- the matcher defining the event which should not be scheduledFixtureExecutionResult expectNoScheduledEvent(Duration durationToScheduledTime, Object event)
event
has been scheduled after the given durationToScheduledTime
.
Note that the source attribute of the event is ignored when comparing events. Events are compared using an
"equals" check on all fields in the events.durationToScheduledTime
- the time to wait until the trigger point of the event which should not be
scheduledevent
- the event which should not be scheduledFixtureExecutionResult expectNoScheduledEventOfType(Duration durationToScheduledTime, Class<?> eventType)
eventType
has been scheduled after the given durationToScheduledTime
.durationToScheduledTime
- the time to wait until the trigger point of the event which should not be
scheduledeventType
- the type of the event which should not be scheduledFixtureExecutionResult expectNoScheduledEventMatching(Instant scheduledTime, org.hamcrest.Matcher<? super EventMessage<?>> matcher)
matcher
has been scheduled at the given scheduledTime
.
If the scheduledTime
is calculated based on the "current time", use the TestExecutor.currentTime()
to get the time to use as "current time".scheduledTime
- the time at which no event matching the given matcher
should be scheduledmatcher
- the matcher defining the event which should not be scheduledFixtureExecutionResult expectNoScheduledEvent(Instant scheduledTime, Object event)
event
has been scheduled at the given scheduledTime
.
If the scheduledTime
is calculated based on the "current time", use the TestExecutor.currentTime()
to get the time to use as "current time".
Note that the source attribute of the event is ignored when comparing events. Events are compared using an
"equals" check on all fields in the events.scheduledTime
- the time at which no event equal to the given event
should be scheduledevent
- the event which should not be scheduledFixtureExecutionResult expectNoScheduledEventOfType(Instant scheduledTime, Class<?> eventType)
eventType
has been scheduled at the given scheduledTime
.scheduledTime
- the time at which no event of eventType
should be scheduledeventType
- the type of the event which should not be scheduledFixtureExecutionResult expectNoScheduledDeadlines()
FixtureExecutionResult expectNoScheduledDeadlineMatching(org.hamcrest.Matcher<? super DeadlineMessage<?>> matcher)
matcher
is scheduled. Can be used to validate if a
deadline has never been set or has been canceled.matcher
- the matcher defining the deadline which should not be scheduledFixtureExecutionResult expectNoScheduledDeadlineMatching(Duration durationToScheduledTime, org.hamcrest.Matcher<? super DeadlineMessage<?>> matcher)
matcher
should be scheduled after the given durationToScheduledTime
. Can be used to validate if a deadline has never been set or has been canceled at an
exact moment in time.durationToScheduledTime
- the time to wait until the trigger point of the deadline which should not be
scheduledmatcher
- the matcher defining the deadline which should not be scheduledFixtureExecutionResult expectNoScheduledDeadline(Duration durationToScheduledTime, Object deadline)
deadline
has been scheduled after the given durationToScheduledTime
. Can be used to validate if a deadline has never been set or has been canceled at an
exact moment in time.
Note that the source attribute of the deadline is ignored when comparing deadlines. Deadlines are compared using
an "equals" check on all fields in the deadlines.durationToScheduledTime
- the time to wait until the trigger point of the deadline which should not be
scheduleddeadline
- the deadline which should not be scheduledFixtureExecutionResult expectNoScheduledDeadlineOfType(Duration durationToScheduledTime, Class<?> deadlineType)
deadlineType
has been scheduled at the given durationToScheduledTime
. Can be used to validate if a deadline has never been set or has been canceled at an
exact moment in time.durationToScheduledTime
- the time to wait until the trigger point of the deadline which should not be
scheduleddeadlineType
- the type of the deadline which should not be scheduledFixtureExecutionResult expectNoScheduledDeadlineWithName(Duration durationToScheduledTime, String deadlineName)
deadlineName
has been scheduled after the given durationToScheduledTime
. Can be used to validate if a deadline has never been set or has been canceled at an
exact moment in time.durationToScheduledTime
- the time to wait until the trigger point of the deadline which should not be
scheduleddeadlineName
- the name of the deadline which should not be scheduledFixtureExecutionResult expectNoScheduledDeadlineMatching(Instant scheduledTime, org.hamcrest.Matcher<? super DeadlineMessage<?>> matcher)
matcher
has been scheduled at the given scheduledTime
. Can be used to validate if a deadline has never been set or has been canceled at an exact moment
in time.
If the scheduledTime
is calculated based on the "current time", use the TestExecutor.currentTime()
to get the time to use as "current time".scheduledTime
- the time at which no deadline matching the given matcher
should be scheduledmatcher
- the matcher defining the deadline which should not be scheduledFixtureExecutionResult expectNoScheduledDeadline(Instant scheduledTime, Object deadline)
deadline
has been scheduled at the given scheduledTime
. Can be used to validate if a deadline has never been set or has been canceled at an exact moment
in time.
If the scheduledTime
is calculated based on the "current time", use the TestExecutor.currentTime()
to get the time to use as "current time".
Note that the source attribute of the deadline is ignored when comparing deadlines. Deadlines are compared using
an "equals" check on all fields in the deadlines.scheduledTime
- the time at which no deadline equal to the given deadline
should be scheduleddeadline
- the deadline which should not be scheduledFixtureExecutionResult expectNoScheduledDeadlineOfType(Instant scheduledTime, Class<?> deadlineType)
deadlineType
has been scheduled at the given scheduledTime
. Can be used to validate if a deadline has never been set or has been canceled at an exact moment
in time.scheduledTime
- the time at which no deadline of deadlineType
should be scheduleddeadlineType
- the type of the deadline which should not be scheduledFixtureExecutionResult expectNoScheduledDeadlineWithName(Instant scheduledTime, String deadlineName)
deadlineName
has been scheduled at the given scheduledTime
. Can be used to validate if a deadline has never been set or has been canceled at an exact moment
in time.scheduledTime
- the time at which no deadline of deadlineName
should be scheduleddeadlineName
- the name of the deadline which should not be scheduledFixtureExecutionResult expectNoScheduledDeadlineMatching(Instant from, Instant to, org.hamcrest.Matcher<? super DeadlineMessage<?>> matcher)
matcher
has been scheduled between the to
and from
times, where to
and
from
are inclusive. Can be used to validate if a deadline has never been set or has been canceled within a given timeframe.from
- the time from which no deadline equal to the given deadline
should be scheduled (inclusive)to
- the time until which no deadline equal to the given deadline
should be scheduled (inclusive)matcher
- the matcher defining the deadline which should not be scheduledFixtureExecutionResult expectNoScheduledDeadline(Instant from, Instant to, Object deadline)
deadline
has been scheduled between the to
and from
times, where to
and from
are inclusive. Can be used to validate if a deadline has never been set or has been canceled within a given timeframe.from
- the time from which no deadline equal to the given deadline
should be scheduled (inclusive)to
- the time until which no deadline equal to the given deadline
should be scheduled (inclusive)deadline
- the deadline which should not be scheduledFixtureExecutionResult expectNoScheduledDeadlineOfType(Instant from, Instant to, Class<?> deadlineType)
deadlineType
has been scheduled between the to
and from
times, where to
and from
are inclusive. Can be used to validate if a deadline has never been set or has been canceled within a given timeframe.from
- the time from which no deadline equal to the given deadline
should be scheduled (inclusive)to
- the time until which no deadline equal to the given deadline
should be scheduled (inclusive)deadlineType
- the type of the deadline which should not be scheduledFixtureExecutionResult expectNoScheduledDeadlineWithName(Instant from, Instant to, String deadlineName)
deadlineName
has been scheduled between the to
and from
times, where to
and from
are inclusive. Can be used to validate if a deadline has never been set or has been canceled within a given timeframe.from
- the time from which no deadline equal to the given deadline
should be scheduled (inclusive)to
- the time until which no deadline equal to the given deadline
should be scheduled (inclusive)deadlineName
- the name of the deadline which should not be scheduledFixtureExecutionResult expectPublishedEventsMatching(org.hamcrest.Matcher<? extends List<? super EventMessage<?>>> matcher)
matcher
. Only events
published in the "when" stage of the tests are matched.matcher
- The matcher that defines the expected list of published events.@Deprecated FixtureExecutionResult expectDeadlinesMetMatching(org.hamcrest.Matcher<? extends List<? super DeadlineMessage<?>>> matcher)
expectTriggeredDeadlinesMatching(Matcher)
matcher
have been met (which have passed in time) on this saga.matcher
- The matcher that defines the expected list of deadlinesFixtureExecutionResult expectTriggeredDeadlinesMatching(org.hamcrest.Matcher<? extends List<? super DeadlineMessage<?>>> matcher)
matcher
have been triggered for this aggregate.matcher
- the matcher that defines the expected list of deadlinesFixtureExecutionResult expectPublishedEvents(Object... expected)
expected
events.
Events are compared comparing their type and fields using equals. Sequence number and aggregate identifier (for
domain events) are ignored in the comparison.expected
- The sequence of events expected to be published by the Saga@Deprecated FixtureExecutionResult expectDeadlinesMet(Object... expected)
expectTriggeredDeadlines(Object...)
expected
deadlines have been met (which have passed in time). Deadlines are compared
comparing their type and fields using "equals".expected
- The sequence of deadlines expected to be metFixtureExecutionResult expectTriggeredDeadlines(Object... expected)
expected
deadlines have been triggered. Deadlines are compared comparing their type
and fields using "equals".expected
- the sequence of deadlines expected to have been triggeredFixtureExecutionResult expectTriggeredDeadlinesWithName(String... expectedDeadlineNames)
expectedDeadlineNames
have been triggered. Matches that the given names are
complete, in the same order and match the triggered deadlines by validating with DeadlineMessage.getDeadlineName()
.expectedDeadlineNames
- the sequence of deadline names expected to have been triggeredFixtureExecutionResult expectTriggeredDeadlinesOfType(Class<?>... expectedDeadlineTypes)
expectedDeadlineTypes
have been triggered. Matches that the given types are
complete, in the same order and match the triggered deadlines by validating with Message.getPayloadType()
.expectedDeadlineTypes
- the sequence of deadline types expected to have been triggeredFixtureExecutionResult expectSuccessfulHandlerExecution()
Copyright © 2010–2024. All rights reserved.