Package | Description |
---|---|
org.axonframework.test.aggregate |
Modifier and Type | Class and Description |
---|---|
class |
ResultValidatorImpl<T>
Implementation of the ResultValidator.
|
Modifier and Type | Method and Description |
---|---|
default ResultValidator |
TestExecutor.andThenTimeAdvancesTo(Instant newPointInTime)
Deprecated.
in favor of
TestExecutor.whenThenTimeAdvancesTo(Instant) . This function incorrectly suggests you can
proceed with other operations after calling it, which is made impossible due to the ResultValidator
return type |
default ResultValidator |
TestExecutor.andThenTimeElapses(Duration elapsedTime)
Deprecated.
in favor of
TestExecutor.whenThenTimeElapses(Duration) . This function incorrectly suggests you can
proceed with other operations after calling it, which is made impossible due to the ResultValidator
return type |
ResultValidator<T> |
ResultValidator.expectDeadlinesMet(Object... expected)
Asserts that given
expected deadlines have been met (which have passed in time). |
ResultValidator<T> |
ResultValidatorImpl.expectDeadlinesMet(Object... expected) |
ResultValidator<T> |
ResultValidator.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 aggregate. |
ResultValidator<T> |
ResultValidatorImpl.expectDeadlinesMetMatching(org.hamcrest.Matcher<? extends List<? super DeadlineMessage<?>>> matcher) |
ResultValidator<T> |
ResultValidator.expectEvents(EventMessage<?>... expectedEvents)
Expect the given set of events to have been published.
|
ResultValidator<T> |
ResultValidatorImpl.expectEvents(EventMessage<?>... expectedEvents) |
ResultValidator<T> |
ResultValidator.expectEvents(Object... expectedEvents)
Expect the given set of events to have been published.
|
ResultValidator<T> |
ResultValidatorImpl.expectEvents(Object... expectedEvents) |
ResultValidator<T> |
ResultValidator.expectEventsMatching(org.hamcrest.Matcher<? extends List<? super EventMessage<?>>> matcher)
Expect the published events to match the given
matcher . |
ResultValidator<T> |
ResultValidatorImpl.expectEventsMatching(org.hamcrest.Matcher<? extends List<? super EventMessage<?>>> matcher) |
ResultValidator<T> |
ResultValidator.expectException(Class<? extends Throwable> expectedException)
Expect the given
expectedException to occur during command handler execution. |
ResultValidator<T> |
ResultValidatorImpl.expectException(Class<? extends Throwable> expectedException) |
ResultValidator<T> |
ResultValidator.expectException(org.hamcrest.Matcher<?> matcher)
Expect an exception to occur during command handler execution that matches with the given
matcher . |
ResultValidator<T> |
ResultValidatorImpl.expectException(org.hamcrest.Matcher<?> matcher) |
ResultValidator<T> |
ResultValidator.expectExceptionMessage(org.hamcrest.Matcher<?> matcher)
Expect an exception message to occur during command handler execution that matches with the given
matcher . |
ResultValidator<T> |
ResultValidatorImpl.expectExceptionMessage(org.hamcrest.Matcher<?> exceptionMessageMatcher) |
ResultValidator<T> |
ResultValidator.expectExceptionMessage(String exceptionMessage)
Expect the given
exceptionMessage to occur during command handler execution. |
ResultValidator<T> |
ResultValidatorImpl.expectExceptionMessage(String exceptionMessage) |
ResultValidator<T> |
ResultValidator.expectMarkedDeleted()
Asserts that the Aggregate has been marked for deletion.
|
ResultValidator<T> |
ResultValidatorImpl.expectMarkedDeleted() |
default ResultValidator<T> |
ResultValidator.expectNoEvents()
Expect no events to have been published from the command.
|
ResultValidator<T> |
ResultValidator.expectNoScheduledDeadline(Duration durationToScheduledTime,
Object deadline)
Asserts that no deadline equal to the given
deadline has been scheduled after the given durationToScheduledTime . |
ResultValidator<T> |
ResultValidatorImpl.expectNoScheduledDeadline(Duration durationToScheduledTime,
Object deadline) |
ResultValidator<T> |
ResultValidator.expectNoScheduledDeadline(Instant scheduledTime,
Object deadline)
Asserts that no deadline equal to the given
deadline has been scheduled at the given scheduledTime . |
ResultValidator<T> |
ResultValidatorImpl.expectNoScheduledDeadline(Instant scheduledTime,
Object deadline) |
ResultValidator<T> |
ResultValidator.expectNoScheduledDeadlineMatching(Duration durationToScheduledTime,
org.hamcrest.Matcher<? super DeadlineMessage<?>> matcher)
Asserts that no deadline matching the given
matcher should be scheduled after the given durationToScheduledTime . |
ResultValidator<T> |
ResultValidatorImpl.expectNoScheduledDeadlineMatching(Duration durationToScheduledTime,
org.hamcrest.Matcher<? super DeadlineMessage<?>> matcher) |
ResultValidator<T> |
ResultValidator.expectNoScheduledDeadlineMatching(Instant scheduledTime,
org.hamcrest.Matcher<? super DeadlineMessage<?>> matcher)
Asserts that no deadline matching the given
matcher has been scheduled at the given scheduledTime . |
ResultValidator<T> |
ResultValidatorImpl.expectNoScheduledDeadlineMatching(Instant scheduledTime,
org.hamcrest.Matcher<? super DeadlineMessage<?>> matcher) |
ResultValidator<T> |
ResultValidator.expectNoScheduledDeadlineMatching(org.hamcrest.Matcher<? super DeadlineMessage<?>> matcher)
Asserts that no deadline matching the given
matcher is scheduled. |
ResultValidator<T> |
ResultValidatorImpl.expectNoScheduledDeadlineMatching(org.hamcrest.Matcher<? super DeadlineMessage<?>> matcher) |
ResultValidator<T> |
ResultValidator.expectNoScheduledDeadlineOfType(Duration durationToScheduledTime,
Class<?> deadlineType)
Asserts that no deadline of the given
deadlineType has been scheduled after the given durationToScheduledTime . |
ResultValidator<T> |
ResultValidatorImpl.expectNoScheduledDeadlineOfType(Duration durationToScheduledTime,
Class<?> deadlineType) |
ResultValidator<T> |
ResultValidator.expectNoScheduledDeadlineOfType(Instant scheduledTime,
Class<?> deadlineType)
Asserts that no deadline with the given
deadlineType has been scheduled at the given scheduledTime . |
ResultValidator<T> |
ResultValidatorImpl.expectNoScheduledDeadlineOfType(Instant scheduledTime,
Class<?> deadlineType) |
ResultValidator<T> |
ResultValidator.expectNoScheduledDeadlines()
Asserts that no deadlines are scheduled.
|
ResultValidator<T> |
ResultValidatorImpl.expectNoScheduledDeadlines() |
ResultValidator<T> |
ResultValidator.expectNoScheduledDeadlineWithName(Duration durationToScheduledTime,
String deadlineName)
Asserts that no deadline with the given
deadlineName has been scheduled after the given durationToScheduledTime . |
ResultValidator<T> |
ResultValidatorImpl.expectNoScheduledDeadlineWithName(Duration durationToScheduledTime,
String deadlineName) |
ResultValidator<T> |
ResultValidator.expectNoScheduledDeadlineWithName(Instant scheduledTime,
String deadlineName)
Asserts that no deadline with the given
deadlineName has been scheduled at the given scheduledTime . |
ResultValidator<T> |
ResultValidatorImpl.expectNoScheduledDeadlineWithName(Instant scheduledTime,
String deadlineName) |
ResultValidator<T> |
ResultValidator.expectNotMarkedDeleted()
Asserts that the Aggregate has NOT been marked for deletion.
|
ResultValidator<T> |
ResultValidatorImpl.expectNotMarkedDeleted() |
ResultValidator<T> |
ResultValidator.expectResultMessage(CommandResultMessage<?> expectedResultMessage)
Expect the command handler to return the given
expectedResultMessage after execution. |
ResultValidator<T> |
ResultValidatorImpl.expectResultMessage(CommandResultMessage<?> expectedResultMessage) |
ResultValidator<T> |
ResultValidator.expectResultMessageMatching(org.hamcrest.Matcher<? super CommandResultMessage<?>> matcher)
Expect the command handler to return a value that matches the given
matcher after execution. |
ResultValidator<T> |
ResultValidatorImpl.expectResultMessageMatching(org.hamcrest.Matcher<? super CommandResultMessage<?>> matcher) |
ResultValidator<T> |
ResultValidator.expectResultMessagePayload(Object expectedPayload)
Expect the command handler to return the given
expectedPayload after execution. |
ResultValidator<T> |
ResultValidatorImpl.expectResultMessagePayload(Object expectedPayload) |
ResultValidator<T> |
ResultValidator.expectResultMessagePayloadMatching(org.hamcrest.Matcher<?> matcher)
Expect the command handler to return a payload that matches the given
matcher after execution. |
ResultValidator<T> |
ResultValidatorImpl.expectResultMessagePayloadMatching(org.hamcrest.Matcher<?> matcher) |
ResultValidator<T> |
ResultValidator.expectScheduledDeadline(Duration duration,
Object deadline)
Asserts that a deadline equal to the given
deadline has been scheduled after the given duration . |
ResultValidator<T> |
ResultValidatorImpl.expectScheduledDeadline(Duration duration,
Object deadline) |
ResultValidator<T> |
ResultValidator.expectScheduledDeadline(Instant scheduledTime,
Object deadline)
Asserts that a deadline equal to the given
deadline has been scheduled at the given scheduledTime . |
ResultValidator<T> |
ResultValidatorImpl.expectScheduledDeadline(Instant scheduledTime,
Object deadline) |
ResultValidator<T> |
ResultValidator.expectScheduledDeadlineMatching(Duration duration,
org.hamcrest.Matcher<? super DeadlineMessage<?>> matcher)
Asserts that a deadline scheduled after given
duration matches the given matcher . |
ResultValidator<T> |
ResultValidatorImpl.expectScheduledDeadlineMatching(Duration duration,
org.hamcrest.Matcher<? super DeadlineMessage<?>> matcher) |
ResultValidator<T> |
ResultValidator.expectScheduledDeadlineMatching(Instant scheduledTime,
org.hamcrest.Matcher<? super DeadlineMessage<?>> matcher)
Asserts that a deadline matching the given
matcher has been scheduled at the given scheduledTime . |
ResultValidator<T> |
ResultValidatorImpl.expectScheduledDeadlineMatching(Instant scheduledTime,
org.hamcrest.Matcher<? super DeadlineMessage<?>> matcher) |
ResultValidator<T> |
ResultValidator.expectScheduledDeadlineOfType(Duration duration,
Class<?> deadlineType)
Asserts that a deadline of the given
deadlineType has been scheduled after the given duration . |
ResultValidator<T> |
ResultValidatorImpl.expectScheduledDeadlineOfType(Duration duration,
Class<?> deadlineType) |
ResultValidator<T> |
ResultValidator.expectScheduledDeadlineOfType(Instant scheduledTime,
Class<?> deadlineType)
Asserts that a deadline of the given
deadlineType has been scheduled at the given scheduledTime . |
ResultValidator<T> |
ResultValidatorImpl.expectScheduledDeadlineOfType(Instant scheduledTime,
Class<?> deadlineType) |
ResultValidator<T> |
ResultValidator.expectScheduledDeadlineWithName(Duration duration,
String deadlineName)
Asserts that a deadline with the given
deadlineName has been scheduled after the given duration . |
ResultValidator<T> |
ResultValidatorImpl.expectScheduledDeadlineWithName(Duration duration,
String deadlineName) |
ResultValidator<T> |
ResultValidator.expectScheduledDeadlineWithName(Instant scheduledTime,
String deadlineName)
Asserts that a deadline with the given
deadlineName has been scheduled at the given scheduledTime . |
ResultValidator<T> |
ResultValidatorImpl.expectScheduledDeadlineWithName(Instant scheduledTime,
String deadlineName) |
ResultValidator<T> |
ResultValidator.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.
|
ResultValidator<T> |
ResultValidatorImpl.expectState(Consumer<T> aggregateStateValidator) |
ResultValidator<T> |
ResultValidator.expectSuccessfulHandlerExecution()
Expect a successful execution of the given command handler, regardless of the actual return value.
|
ResultValidator<T> |
ResultValidatorImpl.expectSuccessfulHandlerExecution() |
ResultValidator<T> |
TestExecutor.when(Object command)
Dispatches the given command to the appropriate command handler and records all activity in the fixture for
result validation.
|
ResultValidator<T> |
AggregateTestFixture.when(Object command) |
ResultValidator<T> |
TestExecutor.when(Object command,
Map<String,?> metaData)
Dispatches the given command and meta data to the appropriate command handler and records all
activity in the fixture for result validation.
|
ResultValidator<T> |
AggregateTestFixture.when(Object command,
Map<String,?> metaData) |
ResultValidator |
TestExecutor.whenThenTimeAdvancesTo(Instant newPointInTime)
Simulates the time advancing in the current given state using an
Instant as the unit of time. |
ResultValidator<T> |
AggregateTestFixture.whenThenTimeAdvancesTo(Instant newPointInTime) |
ResultValidator |
TestExecutor.whenThenTimeElapses(Duration elapsedTime)
Simulates the time elapsing in the current given state using a
Duration as the unit of time. |
ResultValidator<T> |
AggregateTestFixture.whenThenTimeElapses(Duration elapsedTime) |
Copyright © 2010–2020. All rights reserved.