| 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 |
|---|---|
ResultValidator |
TestExecutor.andThenTimeAdvancesTo(Instant newDateTime)
Simulates time shifts in the current given state.
|
ResultValidator |
AggregateTestFixture.andThenTimeAdvancesTo(Instant newDateTime) |
ResultValidator |
TestExecutor.andThenTimeElapses(Duration elapsedTime)
Simulates time shifts in the current given state.
|
ResultValidator |
AggregateTestFixture.andThenTimeElapses(Duration elapsedTime) |
ResultValidator<T> |
ResultValidatorImpl.expectDeadlinesMet(Object... expected) |
ResultValidator<T> |
ResultValidator.expectDeadlinesMet(Object... expected)
Asserts that given
expected deadlines have been met (which have passed in time). |
ResultValidator<T> |
ResultValidatorImpl.expectDeadlinesMetMatching(org.hamcrest.Matcher<? extends List<? super org.axonframework.deadline.DeadlineMessage<?>>> matcher) |
ResultValidator<T> |
ResultValidator.expectDeadlinesMetMatching(org.hamcrest.Matcher<? extends List<? super org.axonframework.deadline.DeadlineMessage<?>>> matcher)
Asserts that deadlines match given
matcher have been met (which have passed in time) on this aggregate. |
ResultValidator<T> |
ResultValidatorImpl.expectEvents(org.axonframework.eventhandling.EventMessage... expectedEvents) |
ResultValidator<T> |
ResultValidator.expectEvents(org.axonframework.eventhandling.EventMessage... expectedEvents)
Expect the given set of events to have been published.
|
ResultValidator<T> |
ResultValidatorImpl.expectEvents(Object... expectedEvents) |
ResultValidator<T> |
ResultValidator.expectEvents(Object... expectedEvents)
Expect the given set of events to have been published.
|
ResultValidator<T> |
ResultValidatorImpl.expectEventsMatching(org.hamcrest.Matcher<? extends List<? super org.axonframework.eventhandling.EventMessage<?>>> matcher) |
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.expectException(Class<? extends Throwable> expectedException) |
ResultValidator<T> |
ResultValidator.expectException(Class<? extends Throwable> expectedException)
Expect the given
expectedException to occur during command handler execution. |
ResultValidator<T> |
ResultValidatorImpl.expectException(org.hamcrest.Matcher<?> matcher) |
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.expectExceptionMessage(org.hamcrest.Matcher<?> exceptionMessageMatcher) |
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(String exceptionMessage) |
ResultValidator<T> |
ResultValidator.expectExceptionMessage(String exceptionMessage)
Expect the given
exceptionMessage to occur during command handler execution. |
default ResultValidator<T> |
ResultValidator.expectNoEvents()
Expect no events to have been published from the command.
|
ResultValidator<T> |
ResultValidatorImpl.expectNoScheduledDeadlines() |
ResultValidator<T> |
ResultValidator.expectNoScheduledDeadlines()
Asserts that no deadlines are scheduled.
|
ResultValidator<T> |
ResultValidatorImpl.expectResultMessage(org.axonframework.commandhandling.CommandResultMessage expectedResultMessage) |
ResultValidator<T> |
ResultValidator.expectResultMessage(org.axonframework.commandhandling.CommandResultMessage expectedResultMessage)
Expect the command handler to return the given
expectedResultMessage after execution. |
ResultValidator<T> |
ResultValidatorImpl.expectResultMessageMatching(org.hamcrest.Matcher<? super org.axonframework.commandhandling.CommandResultMessage<?>> matcher) |
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.expectResultMessagePayload(Object expectedPayload) |
ResultValidator<T> |
ResultValidator.expectResultMessagePayload(Object expectedPayload)
Expect the command handler to return the given
expectedPayload after execution. |
ResultValidator<T> |
ResultValidatorImpl.expectResultMessagePayloadMatching(org.hamcrest.Matcher<?> matcher) |
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.expectScheduledDeadline(Duration duration,
Object deadline) |
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(Instant scheduledTime,
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.expectScheduledDeadlineMatching(Duration duration,
org.hamcrest.Matcher<? super org.axonframework.deadline.DeadlineMessage<?>> matcher) |
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(Instant scheduledTime,
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.expectScheduledDeadlineOfType(Duration duration,
Class<?> deadlineType) |
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(Instant scheduledTime,
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.expectState(Consumer<T> aggregateStateValidator) |
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.expectSuccessfulHandlerExecution() |
ResultValidator<T> |
ResultValidator.expectSuccessfulHandlerExecution()
Expect a successful execution of the given command handler, regardless of the actual return value.
|
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) |
Copyright © 2010–2018. All rights reserved.