| 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.whenTimeAdvancesTo(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.whenTimeElapses(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)
Deprecated.
in favor of
expectTriggeredDeadlines(Object...) |
ResultValidator<T> |
ResultValidatorImpl.expectDeadlinesMet(Object... expected) |
ResultValidator<T> |
ResultValidator.expectDeadlinesMetMatching(org.hamcrest.Matcher<? extends List<? super org.axonframework.deadline.DeadlineMessage<?>>> matcher)
Deprecated.
in favor of
expectTriggeredDeadlinesMatching(Matcher) |
ResultValidator<T> |
ResultValidatorImpl.expectDeadlinesMetMatching(org.hamcrest.Matcher<? extends List<? super org.axonframework.deadline.DeadlineMessage<?>>> matcher) |
ResultValidator<T> |
ResultValidator.expectEvents(org.axonframework.eventhandling.EventMessage<?>... expectedEvents)
Expect the given set of events to have been published.
|
ResultValidator<T> |
ResultValidatorImpl.expectEvents(org.axonframework.eventhandling.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 org.axonframework.eventhandling.EventMessage<?>>> matcher)
Expect the published events to match the given
matcher. |
ResultValidator<T> |
ResultValidatorImpl.expectEventsMatching(org.hamcrest.Matcher<? extends List<? super org.axonframework.eventhandling.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.expectExceptionDetails(Class<?> exceptionDetails)
Expect the given
exceptionDetails type to occur during command handler execution. |
ResultValidator<T> |
ResultValidatorImpl.expectExceptionDetails(Class<?> exceptionDetails) |
ResultValidator<T> |
ResultValidator.expectExceptionDetails(org.hamcrest.Matcher<?> matcher)
Expect exception details to occur during command handler execution that matches with the given
matcher. |
ResultValidator<T> |
ResultValidatorImpl.expectExceptionDetails(org.hamcrest.Matcher<?> exceptionDetailsMatcher) |
ResultValidator<T> |
ResultValidator.expectExceptionDetails(Object exceptionDetails)
Expect the given
exceptionDetails to occur during command handler execution. |
ResultValidator<T> |
ResultValidatorImpl.expectExceptionDetails(Object exceptionDetails) |
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 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. |
ResultValidator<T> |
ResultValidatorImpl.expectNoScheduledDeadline(Instant from,
Instant to,
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 org.axonframework.deadline.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 org.axonframework.deadline.DeadlineMessage<?>> matcher) |
ResultValidator<T> |
ResultValidator.expectNoScheduledDeadlineMatching(Instant from,
Instant to,
org.hamcrest.Matcher<? super org.axonframework.deadline.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. |
ResultValidator<T> |
ResultValidatorImpl.expectNoScheduledDeadlineMatching(Instant from,
Instant to,
org.hamcrest.Matcher<? super org.axonframework.deadline.DeadlineMessage<?>> matcher) |
ResultValidator<T> |
ResultValidator.expectNoScheduledDeadlineMatching(Instant scheduledTime,
org.hamcrest.Matcher<? super org.axonframework.deadline.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 org.axonframework.deadline.DeadlineMessage<?>> matcher) |
ResultValidator<T> |
ResultValidator.expectNoScheduledDeadlineMatching(org.hamcrest.Matcher<? super org.axonframework.deadline.DeadlineMessage<?>> matcher)
Asserts that no deadline matching the given
matcher is scheduled. |
ResultValidator<T> |
ResultValidatorImpl.expectNoScheduledDeadlineMatching(org.hamcrest.Matcher<? super org.axonframework.deadline.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.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. |
ResultValidator<T> |
ResultValidatorImpl.expectNoScheduledDeadlineOfType(Instant from,
Instant to,
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 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. |
ResultValidator<T> |
ResultValidatorImpl.expectNoScheduledDeadlineWithName(Instant from,
Instant to,
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(org.axonframework.commandhandling.CommandResultMessage<?> expectedResultMessage)
Expect the command handler to return the given
expectedResultMessage after execution. |
ResultValidator<T> |
ResultValidatorImpl.expectResultMessage(org.axonframework.commandhandling.CommandResultMessage<?> expectedResultMessage) |
ResultValidator<T> |
ResultValidator.expectResultMessageMatching(org.hamcrest.Matcher<? super org.axonframework.commandhandling.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 org.axonframework.commandhandling.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 org.axonframework.deadline.DeadlineMessage<?>> matcher)
Asserts that a deadline scheduled after given
duration matches the given matcher. |
ResultValidator<T> |
ResultValidatorImpl.expectScheduledDeadlineMatching(Duration duration,
org.hamcrest.Matcher<? super org.axonframework.deadline.DeadlineMessage<?>> matcher) |
ResultValidator<T> |
ResultValidator.expectScheduledDeadlineMatching(Instant scheduledTime,
org.hamcrest.Matcher<? super org.axonframework.deadline.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 org.axonframework.deadline.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> |
ResultValidator.expectTriggeredDeadlines(Object... expected)
Asserts that given
expected deadlines have been triggered. |
ResultValidator<T> |
ResultValidatorImpl.expectTriggeredDeadlines(Object... expected) |
ResultValidator<T> |
ResultValidator.expectTriggeredDeadlinesMatching(org.hamcrest.Matcher<? extends List<? super org.axonframework.deadline.DeadlineMessage<?>>> matcher)
Asserts that deadlines matching the given
matcher have been triggered for this aggregate. |
ResultValidator<T> |
ResultValidatorImpl.expectTriggeredDeadlinesMatching(org.hamcrest.Matcher<? extends List<? super org.axonframework.deadline.DeadlineMessage<?>>> matcher) |
ResultValidator<T> |
ResultValidator.expectTriggeredDeadlinesOfType(Class<?>... expectedDeadlineTypes)
Asserts that the given
expectedDeadlineTypes have been triggered. |
ResultValidator<T> |
ResultValidatorImpl.expectTriggeredDeadlinesOfType(Class<?>... expectedDeadlineTypes) |
ResultValidator<T> |
ResultValidator.expectTriggeredDeadlinesWithName(String... expectedDeadlineNames)
Asserts that the given
expectedDeadlineNames have been triggered. |
ResultValidator<T> |
ResultValidatorImpl.expectTriggeredDeadlinesWithName(String... expectedDeadlineNames) |
ResultValidator<T> |
AggregateTestFixture.when(Object command) |
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,
Map<String,?> metaData) |
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.whenConstructing(Callable<T> aggregateFactory) |
ResultValidator<T> |
TestExecutor.whenConstructing(Callable<T> aggregateFactory)
Invokes the given
aggregateFactory expecting an aggregate instance of type T to be returned. |
ResultValidator<T> |
AggregateTestFixture.whenInvoking(String aggregateId,
Consumer<T> aggregateSupplier) |
ResultValidator<T> |
TestExecutor.whenInvoking(String aggregateIdentifier,
Consumer<T> aggregateConsumer)
Invokes the given
aggregateConsumer after loading an aggregate of type T based on the given
aggregateIdentifier. |
ResultValidator<T> |
AggregateTestFixture.whenThenTimeAdvancesTo(Instant newPointInTime)
Deprecated.
|
ResultValidator<T> |
TestExecutor.whenThenTimeAdvancesTo(Instant newPointInTime)
Deprecated.
since 4.6. Use
TestExecutor.whenTimeAdvancesTo(Instant) method |
ResultValidator<T> |
AggregateTestFixture.whenThenTimeElapses(Duration elapsedTime)
Deprecated.
|
ResultValidator<T> |
TestExecutor.whenThenTimeElapses(Duration elapsedTime)
Deprecated.
since 4.6. Use
TestExecutor.whenTimeAdvancesTo(Instant) method |
ResultValidator<T> |
AggregateTestFixture.whenTimeAdvancesTo(Instant newPointInTime) |
default ResultValidator<T> |
TestExecutor.whenTimeAdvancesTo(Instant newPointInTime)
Simulates the time advancing in the current given state using an
Instant as the unit of time. |
ResultValidator<T> |
AggregateTestFixture.whenTimeElapses(Duration elapsedTime) |
default ResultValidator<T> |
TestExecutor.whenTimeElapses(Duration elapsedTime)
Simulates the time elapsing in the current given state using a
Duration as the unit of time. |
Copyright © 2010–2024. All rights reserved.