Interface ResultValidator<T>
- Type Parameters:
T- The type of Aggregate under test
- All Known Implementing Classes:
ResultValidatorImpl
TestExecutor.
There are several things to validate:
- the published events,
- the stored events, and
- the command handler's
execution result, which is one of
- a regular return value,
- a
voidreturn value, or - an exception.
- Since:
- 0.6
- Author:
- Allard Buijze
-
Method Summary
Modifier and TypeMethodDescriptionexpectDeadlinesMet(Object... expected) Deprecated.expectDeadlinesMetMatching(org.hamcrest.Matcher<? extends List<? super DeadlineMessage<?>>> matcher) Deprecated.in favor ofexpectTriggeredDeadlinesMatching(Matcher)expectEvents(Object... expectedEvents) Expect the given set of events to have been published.expectEvents(EventMessage<?>... expectedEvents) Expect the given set of events to have been published.expectEventsMatching(org.hamcrest.Matcher<? extends List<? super EventMessage<?>>> matcher) Expect the published events to match the givenmatcher.expectException(Class<? extends Throwable> expectedException) Expect the givenexpectedExceptionto occur during command handler execution.expectException(org.hamcrest.Matcher<?> matcher) Expect an exception to occur during command handler execution that matches with the givenmatcher.expectExceptionDetails(Class<?> exceptionDetails) Expect the givenexceptionDetailstype to occur during command handler execution.expectExceptionDetails(Object exceptionDetails) Expect the givenexceptionDetailsto occur during command handler execution.expectExceptionDetails(org.hamcrest.Matcher<?> matcher) Expect exception details to occur during command handler execution that matches with the givenmatcher.expectExceptionMessage(String exceptionMessage) Expect the givenexceptionMessageto occur during command handler execution.expectExceptionMessage(org.hamcrest.Matcher<?> matcher) Expect an exception message to occur during command handler execution that matches with the givenmatcher.Asserts that the Aggregate has been marked for deletion.default ResultValidator<T> Expect no events to have been published from the command.expectNoScheduledDeadline(Duration durationToScheduledTime, Object deadline) Asserts that no deadline equal to the givendeadlinehas been scheduled after the givendurationToScheduledTime.expectNoScheduledDeadline(Instant scheduledTime, Object deadline) Asserts that no deadline equal to the givendeadlinehas been scheduled at the givenscheduledTime.expectNoScheduledDeadline(Instant from, Instant to, Object deadline) Asserts that no deadline equal to the givendeadlinehas been scheduled between thetoandfromtimes, wheretoandfromare inclusive.expectNoScheduledDeadlineMatching(Duration durationToScheduledTime, org.hamcrest.Matcher<? super DeadlineMessage<?>> matcher) Asserts that no deadline matching the givenmatchershould be scheduled after the givendurationToScheduledTime.expectNoScheduledDeadlineMatching(Instant from, Instant to, org.hamcrest.Matcher<? super DeadlineMessage<?>> matcher) Asserts that no deadline matching the givenmatcherhas been scheduled between thetoandfromtimes, wheretoandfromare inclusive.expectNoScheduledDeadlineMatching(Instant scheduledTime, org.hamcrest.Matcher<? super DeadlineMessage<?>> matcher) Asserts that no deadline matching the givenmatcherhas been scheduled at the givenscheduledTime.expectNoScheduledDeadlineMatching(org.hamcrest.Matcher<? super DeadlineMessage<?>> matcher) Asserts that no deadline matching the givenmatcheris scheduled.expectNoScheduledDeadlineOfType(Duration durationToScheduledTime, Class<?> deadlineType) Asserts that no deadline of the givendeadlineTypehas been scheduled after the givendurationToScheduledTime.expectNoScheduledDeadlineOfType(Instant scheduledTime, Class<?> deadlineType) Asserts that no deadline with the givendeadlineTypehas been scheduled at the givenscheduledTime.expectNoScheduledDeadlineOfType(Instant from, Instant to, Class<?> deadlineType) Asserts that no deadline with the givendeadlineTypehas been scheduled between thetoandfromtimes, wheretoandfromare inclusive.Asserts that no deadlines are scheduled.expectNoScheduledDeadlineWithName(Duration durationToScheduledTime, String deadlineName) Asserts that no deadline with the givendeadlineNamehas been scheduled after the givendurationToScheduledTime.expectNoScheduledDeadlineWithName(Instant scheduledTime, String deadlineName) Asserts that no deadline with the givendeadlineNamehas been scheduled at the givenscheduledTime.expectNoScheduledDeadlineWithName(Instant from, Instant to, String deadlineName) Asserts that no deadline with the givendeadlineNamehas been scheduled between thetoandfromtimes, wheretoandfromare inclusive.Asserts that the Aggregate has NOT been marked for deletion.expectResultMessage(CommandResultMessage<?> expectedResultMessage) Expect the command handler to return the givenexpectedResultMessageafter execution.expectResultMessageMatching(org.hamcrest.Matcher<? super CommandResultMessage<?>> matcher) Expect the command handler to return a value that matches the givenmatcherafter execution.expectResultMessagePayload(Object expectedPayload) Expect the command handler to return the givenexpectedPayloadafter execution.expectResultMessagePayloadMatching(org.hamcrest.Matcher<?> matcher) Expect the command handler to return a payload that matches the givenmatcherafter execution.expectScheduledDeadline(Duration duration, Object deadline) Asserts that a deadline equal to the givendeadlinehas been scheduled after the givenduration.expectScheduledDeadline(Instant scheduledTime, Object deadline) Asserts that a deadline equal to the givendeadlinehas been scheduled at the givenscheduledTime.expectScheduledDeadlineMatching(Duration duration, org.hamcrest.Matcher<? super DeadlineMessage<?>> matcher) Asserts that a deadline scheduled after givendurationmatches the givenmatcher.expectScheduledDeadlineMatching(Instant scheduledTime, org.hamcrest.Matcher<? super DeadlineMessage<?>> matcher) Asserts that a deadline matching the givenmatcherhas been scheduled at the givenscheduledTime.expectScheduledDeadlineOfType(Duration duration, Class<?> deadlineType) Asserts that a deadline of the givendeadlineTypehas been scheduled after the givenduration.expectScheduledDeadlineOfType(Instant scheduledTime, Class<?> deadlineType) Asserts that a deadline of the givendeadlineTypehas been scheduled at the givenscheduledTime.expectScheduledDeadlineWithName(Duration duration, String deadlineName) Asserts that a deadline with the givendeadlineNamehas been scheduled after the givenduration.expectScheduledDeadlineWithName(Instant scheduledTime, String deadlineName) Asserts that a deadline with the givendeadlineNamehas been scheduled at the givenscheduledTime.expectState(Consumer<T> aggregateStateValidator) Provides access the the state of the Aggregate as it was stored in the repository, allowing for validation of the state of the aggregate, as it was left in the repository.Expect a successful execution of the given command handler, regardless of the actual return value.expectTriggeredDeadlines(Object... expected) Asserts that givenexpecteddeadlines have been triggered.expectTriggeredDeadlinesMatching(org.hamcrest.Matcher<? extends List<? super DeadlineMessage<?>>> matcher) Asserts that deadlines matching the givenmatcherhave been triggered for this aggregate.expectTriggeredDeadlinesOfType(Class<?>... expectedDeadlineTypes) Asserts that the givenexpectedDeadlineTypeshave been triggered.expectTriggeredDeadlinesWithName(String... expectedDeadlineNames) Asserts that the givenexpectedDeadlineNameshave been triggered.
-
Method Details
-
expectEvents
Expect the given set of events to have been published.All events are compared for equality using a shallow equals comparison on all the fields of the events. This means that all assigned values on the events' fields should have a proper equals implementation.
Note that the event identifier is ignored in the comparison.
- Parameters:
expectedEvents- The expected events, in the exact order they are expected to be dispatched and stored.- Returns:
- the current ResultValidator, for fluent interfacing
-
expectEvents
Expect the given set of events to have been published.All events are compared for equality using a shallow equals comparison on all the fields of the events. This means that all assigned values on the events' fields should have a proper equals implementation.
Additionally the metadata will be compared too.Note that the event identifier is ignored in the comparison.
- Parameters:
expectedEvents- The expected events, in the exact order they are expected to be dispatched and stored.- Returns:
- the current ResultValidator, for fluent interfacing
-
expectNoEvents
Expect no events to have been published from the command.- Returns:
- the current ResultValidator, for fluent interfacing
-
expectEventsMatching
ResultValidator<T> expectEventsMatching(org.hamcrest.Matcher<? extends List<? super EventMessage<?>>> matcher) Expect the published events to match the givenmatcher.Note: if no events were published, the matcher receives an empty List.
- Parameters:
matcher- The matcher to match with the actually published events- Returns:
- the current ResultValidator, for fluent interfacing
-
expectResultMessagePayload
Expect the command handler to return the givenexpectedPayloadafter execution. The actual and expected values are compared using their equals methods.- Parameters:
expectedPayload- The expected result message payload of the command execution- Returns:
- the current ResultValidator, for fluent interfacing
-
expectResultMessagePayloadMatching
Expect the command handler to return a payload that matches the givenmatcherafter execution.- Parameters:
matcher- The matcher to verify the actual return value against- Returns:
- the current ResultValidator, for fluent interfacing
-
expectResultMessage
Expect the command handler to return the givenexpectedResultMessageafter execution. The actual and expected values are compared using their equals methods.Comparison is done on message payload and meta data.
- Parameters:
expectedResultMessage- The expected result message of the command execution- Returns:
- the current ResultValidator, for fluent interfacing
-
expectResultMessageMatching
ResultValidator<T> expectResultMessageMatching(org.hamcrest.Matcher<? super CommandResultMessage<?>> matcher) Expect the command handler to return a value that matches the givenmatcherafter execution.- Parameters:
matcher- The matcher to verify the actual result message against- Returns:
- the current ResultValidator, for fluent interfacing
-
expectExceptionMessage
Expect an exception message to occur during command handler execution that matches with the givenmatcher.- Parameters:
matcher- The matcher to validate the actual exception message- Returns:
- the current ResultValidator, for fluent interfacing
-
expectExceptionMessage
Expect the givenexceptionMessageto occur during command handler execution. The actual exception message should be exactly the same asexceptionMessage.- Parameters:
exceptionMessage- The exception message expected from the command handler execution- Returns:
- the current ResultValidator, for fluent interfacing
-
expectException
Expect the givenexpectedExceptionto occur during command handler execution. The actual exception should be exactly of that type, subclasses are not accepted.- Parameters:
expectedException- The type of exception expected from the command handler execution- Returns:
- the current ResultValidator, for fluent interfacing
-
expectException
Expect an exception to occur during command handler execution that matches with the givenmatcher.- Parameters:
matcher- The matcher to validate the actual exception- Returns:
- the current ResultValidator, for fluent interfacing
-
expectExceptionDetails
Expect the givenexceptionDetailsto occur during command handler execution. The actual exception details should be exactly the same asexceptionDetails.- Parameters:
exceptionDetails- The exception details expected from the command handler execution- Returns:
- the current ResultValidator, for fluent interfacing
-
expectExceptionDetails
Expect the givenexceptionDetailstype to occur during command handler execution. The actual exception details should be exactly of that type, subclasses are not accepted.- Parameters:
exceptionDetails- The type of exception details expected from the command handler execution- Returns:
- the current ResultValidator, for fluent interfacing
-
expectExceptionDetails
Expect exception details to occur during command handler execution that matches with the givenmatcher.- Parameters:
matcher- The matcher to validate the actual exception details- Returns:
- the current ResultValidator, for fluent interfacing
-
expectSuccessfulHandlerExecution
ResultValidator<T> expectSuccessfulHandlerExecution()Expect a successful execution of the given command handler, regardless of the actual return value.- Returns:
- the current ResultValidator, for fluent interfacing
-
expectState
Provides access the the state of the Aggregate as it was stored in the repository, allowing for validation of the state of the aggregate, as it was left in the repository.Note that validating state on Event Sourced Aggregate is highly discouraged. Event Sourced aggregates should measure behavior exclusively by measuring emitted events.
- Parameters:
aggregateStateValidator- a consumer that is provided with the aggregate instance, allowing it to make assertions based on the aggregate's state.- Returns:
- the current ResultValidator, for fluent interfacing
- Throws:
IllegalStateException- when an error in Command execution caused the Unit of Work to be rolled back.
-
expectScheduledDeadlineMatching
ResultValidator<T> expectScheduledDeadlineMatching(Duration duration, org.hamcrest.Matcher<? super DeadlineMessage<?>> matcher) Asserts that a deadline scheduled after givendurationmatches the givenmatcher.- Parameters:
duration- the delay expected before the deadline is metmatcher- the matcher that must match with the deadline scheduled at the given time- Returns:
- the current ResultValidator, for fluent interfacing
-
expectScheduledDeadline
Asserts that a deadline equal to the givendeadlinehas been scheduled after the givenduration. 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.- Parameters:
duration- the time to wait before the deadline should be metdeadline- the expected deadline- Returns:
- the current ResultValidator, for fluent interfacing
-
expectScheduledDeadlineOfType
Asserts that a deadline of the givendeadlineTypehas been scheduled after the givenduration.- Parameters:
duration- the time to wait before the deadline is metdeadlineType- the type of the expected deadline- Returns:
- the current ResultValidator, for fluent interfacing
-
expectScheduledDeadlineWithName
Asserts that a deadline with the givendeadlineNamehas been scheduled after the givenduration.- Parameters:
duration- the time to wait before the deadline is metdeadlineName- the name of the expected deadline- Returns:
- the current ResultValidator, for fluent interfacing
-
expectScheduledDeadlineMatching
ResultValidator<T> expectScheduledDeadlineMatching(Instant scheduledTime, org.hamcrest.Matcher<? super DeadlineMessage<?>> matcher) Asserts that a deadline matching the givenmatcherhas been scheduled at the givenscheduledTime. If thescheduledTimeis calculated based on the "current time", use theTestExecutor.currentTime()to get the time to use as "current time".- Parameters:
scheduledTime- the time at which the deadline should be metmatcher- the matcher defining the deadline expected- Returns:
- the current ResultValidator, for fluent interfacing
-
expectScheduledDeadline
Asserts that a deadline equal to the givendeadlinehas been scheduled at the givenscheduledTime. If thescheduledTimeis calculated based on the "current time", use theTestExecutor.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.- Parameters:
scheduledTime- the time at which the deadline is scheduleddeadline- the expected deadline- Returns:
- the current ResultValidator, for fluent interfacing
-
expectScheduledDeadlineOfType
Asserts that a deadline of the givendeadlineTypehas been scheduled at the givenscheduledTime.- Parameters:
scheduledTime- the time at which the deadline is scheduleddeadlineType- the type of the expected deadline- Returns:
- the current ResultValidator, for fluent interfacing
-
expectScheduledDeadlineWithName
Asserts that a deadline with the givendeadlineNamehas been scheduled at the givenscheduledTime.- Parameters:
scheduledTime- the time at which the deadline is scheduleddeadlineName- the name of the expected deadline- Returns:
- the current ResultValidator, for fluent interfacing
-
expectNoScheduledDeadlines
ResultValidator<T> expectNoScheduledDeadlines()Asserts that no deadlines are scheduled. This means that either no deadlines were scheduled at all, all schedules have been cancelled or all scheduled deadlines have been met already.- Returns:
- the current ResultValidator, for fluent interfacing
-
expectNoScheduledDeadlineMatching
ResultValidator<T> expectNoScheduledDeadlineMatching(org.hamcrest.Matcher<? super DeadlineMessage<?>> matcher) Asserts that no deadline matching the givenmatcheris scheduled. Can be used to validate if a deadline has never been set or has been canceled.- Parameters:
matcher- the matcher defining the deadline which should not be scheduled- Returns:
- the current ResultValidator, for fluent interfacing
-
expectNoScheduledDeadlineMatching
ResultValidator<T> expectNoScheduledDeadlineMatching(Duration durationToScheduledTime, org.hamcrest.Matcher<? super DeadlineMessage<?>> matcher) Asserts that no deadline matching the givenmatchershould be scheduled after the givendurationToScheduledTime. Can be used to validate if a deadline has never been set or has been canceled at an exact moment in time.- Parameters:
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 scheduled- Returns:
- the current ResultValidator, for fluent interfacing
-
expectNoScheduledDeadline
Asserts that no deadline equal to the givendeadlinehas been scheduled after the givendurationToScheduledTime. 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.- Parameters:
durationToScheduledTime- the time to wait until the trigger point of the deadline which should not be scheduleddeadline- the deadline which should not be scheduled- Returns:
- the current ResultValidator, for fluent interfacing
-
expectNoScheduledDeadlineOfType
ResultValidator<T> expectNoScheduledDeadlineOfType(Duration durationToScheduledTime, Class<?> deadlineType) Asserts that no deadline of the givendeadlineTypehas been scheduled after the givendurationToScheduledTime. Can be used to validate if a deadline has never been set or has been canceled at an exact moment in time.- Parameters:
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 scheduled- Returns:
- the current ResultValidator, for fluent interfacing
-
expectNoScheduledDeadlineWithName
ResultValidator<T> expectNoScheduledDeadlineWithName(Duration durationToScheduledTime, String deadlineName) Asserts that no deadline with the givendeadlineNamehas been scheduled after the givendurationToScheduledTime. Can be used to validate if a deadline has never been set or has been canceled at an exact moment in time.- Parameters:
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 scheduled- Returns:
- the current ResultValidator, for fluent interfacing
-
expectNoScheduledDeadlineMatching
ResultValidator<T> expectNoScheduledDeadlineMatching(Instant scheduledTime, org.hamcrest.Matcher<? super DeadlineMessage<?>> matcher) Asserts that no deadline matching the givenmatcherhas been scheduled at the givenscheduledTime. Can be used to validate if a deadline has never been set or has been canceled at an exact moment in time. If thescheduledTimeis calculated based on the "current time", use theTestExecutor.currentTime()to get the time to use as "current time".- Parameters:
scheduledTime- the time at which no deadline matching the givenmatchershould be scheduledmatcher- the matcher defining the deadline which should not be scheduled- Returns:
- the current ResultValidator, for fluent interfacing
-
expectNoScheduledDeadline
Asserts that no deadline equal to the givendeadlinehas been scheduled at the givenscheduledTime. Can be used to validate if a deadline has never been set or has been canceled at an exact moment in time. If thescheduledTimeis calculated based on the "current time", use theTestExecutor.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.- Parameters:
scheduledTime- the time at which no deadline equal to the givendeadlineshould be scheduleddeadline- the deadline which should not be scheduled- Returns:
- the current ResultValidator, for fluent interfacing
-
expectNoScheduledDeadlineOfType
Asserts that no deadline with the givendeadlineTypehas been scheduled at the givenscheduledTime. Can be used to validate if a deadline has never been set or has been canceled at an exact moment in time.- Parameters:
scheduledTime- the time at which no deadline ofdeadlineTypeshould be scheduleddeadlineType- the type of the deadline which should not be scheduled- Returns:
- the current ResultValidator, for fluent interfacing
-
expectNoScheduledDeadlineWithName
Asserts that no deadline with the givendeadlineNamehas been scheduled at the givenscheduledTime. Can be used to validate if a deadline has never been set or has been canceled at an exact moment in time.- Parameters:
scheduledTime- the time at which no deadline ofdeadlineNameshould be scheduleddeadlineName- the name of the deadline which should not be scheduled- Returns:
- the current ResultValidator, for fluent interfacing
-
expectNoScheduledDeadlineMatching
ResultValidator<T> expectNoScheduledDeadlineMatching(Instant from, Instant to, org.hamcrest.Matcher<? super DeadlineMessage<?>> matcher) Asserts that no deadline matching the givenmatcherhas been scheduled between thetoandfromtimes, wheretoandfromare inclusive. Can be used to validate if a deadline has never been set or has been canceled within a given timeframe.- Parameters:
from- the time from which no deadline equal to the givendeadlineshould be scheduled (inclusive)to- the time until which no deadline equal to the givendeadlineshould be scheduled (inclusive)matcher- the matcher defining the deadline which should not be scheduled- Returns:
- the current ResultValidator, for fluent interfacing
-
expectNoScheduledDeadline
Asserts that no deadline equal to the givendeadlinehas been scheduled between thetoandfromtimes, wheretoandfromare inclusive. Can be used to validate if a deadline has never been set or has been canceled within a given timeframe.- Parameters:
from- the time from which no deadline equal to the givendeadlineshould be scheduled (inclusive)to- the time until which no deadline equal to the givendeadlineshould be scheduled (inclusive)deadline- the deadline which should not be scheduled- Returns:
- the current ResultValidator, for fluent interfacing
-
expectNoScheduledDeadlineOfType
Asserts that no deadline with the givendeadlineTypehas been scheduled between thetoandfromtimes, wheretoandfromare inclusive. Can be used to validate if a deadline has never been set or has been canceled within a given timeframe.- Parameters:
from- the time from which no deadline equal to the givendeadlineshould be scheduled (inclusive)to- the time until which no deadline equal to the givendeadlineshould be scheduled (inclusive)deadlineType- the type of the deadline which should not be scheduled- Returns:
- the current ResultValidator, for fluent interfacing
-
expectNoScheduledDeadlineWithName
Asserts that no deadline with the givendeadlineNamehas been scheduled between thetoandfromtimes, wheretoandfromare inclusive. Can be used to validate if a deadline has never been set or has been canceled within a given timeframe.- Parameters:
from- the time from which no deadline equal to the givendeadlineshould be scheduled (inclusive)to- the time until which no deadline equal to the givendeadlineshould be scheduled (inclusive)deadlineName- the name of the deadline which should not be scheduled- Returns:
- the current ResultValidator, for fluent interfacing
-
expectDeadlinesMetMatching
@Deprecated ResultValidator<T> expectDeadlinesMetMatching(org.hamcrest.Matcher<? extends List<? super DeadlineMessage<?>>> matcher) Deprecated.in favor ofexpectTriggeredDeadlinesMatching(Matcher)Asserts that deadlines matching the givenmatcherhave been met (which have passed in time) on this aggregate.- Parameters:
matcher- The matcher that defines the expected list of deadlines- Returns:
- the current ResultValidator, for fluent interfacing
-
expectTriggeredDeadlinesMatching
ResultValidator<T> expectTriggeredDeadlinesMatching(org.hamcrest.Matcher<? extends List<? super DeadlineMessage<?>>> matcher) Asserts that deadlines matching the givenmatcherhave been triggered for this aggregate.- Parameters:
matcher- the matcher that defines the expected list of deadlines- Returns:
- the current ResultValidator, for fluent interfacing
-
expectDeadlinesMet
Deprecated.in favor ofexpectTriggeredDeadlines(Object...)Asserts that givenexpecteddeadlines have been met (which have passed in time). Deadlines are compared comparing their type and fields using "equals".- Parameters:
expected- The sequence of deadlines expected to be met- Returns:
- the current ResultValidator, for fluent interfacing
-
expectTriggeredDeadlines
Asserts that givenexpecteddeadlines have been triggered. Deadlines are compared by their type and fields using "equals".- Parameters:
expected- the sequence of deadlines expected to have been triggered- Returns:
- the current ResultValidator, for fluent interfacing
-
expectTriggeredDeadlinesWithName
Asserts that the givenexpectedDeadlineNameshave been triggered. Matches that the given names are complete, in the same order and match the triggered deadlines by validating withDeadlineMessage.getDeadlineName().- Parameters:
expectedDeadlineNames- the sequence of deadline names expected to have been triggered- Returns:
- the current ResultValidator, for fluent interfacing
-
expectTriggeredDeadlinesOfType
Asserts that the givenexpectedDeadlineTypeshave been triggered. Matches that the given types are complete, in the same order and match the triggered deadlines by validating withMessage.getPayloadType().- Parameters:
expectedDeadlineTypes- the sequence of deadline types expected to have been triggered- Returns:
- the current ResultValidator, for fluent interfacing
-
expectMarkedDeleted
ResultValidator<T> expectMarkedDeleted()Asserts that the Aggregate has been marked for deletion.- Returns:
- the current ResultValidator, for fluent interfacing
-
expectNotMarkedDeleted
ResultValidator<T> expectNotMarkedDeleted()Asserts that the Aggregate has NOT been marked for deletion.- Returns:
- the current ResultValidator, for fluent interfacing
-
expectTriggeredDeadlines(Object...)