Uses of Interface
org.axonframework.test.aggregate.ResultValidator
Packages that use ResultValidator
-
Uses of ResultValidator in org.axonframework.test.aggregate
Classes in org.axonframework.test.aggregate that implement ResultValidatorModifier and TypeClassDescriptionclassImplementation of the ResultValidator.Methods in org.axonframework.test.aggregate that return ResultValidatorModifier and TypeMethodDescriptiondefault ResultValidatorTestExecutor.andThenTimeAdvancesTo(Instant newPointInTime) Deprecated.default ResultValidatorTestExecutor.andThenTimeElapses(Duration elapsedTime) Deprecated.in favor ofTestExecutor.whenTimeElapses(Duration).ResultValidator.expectDeadlinesMet(Object... expected) Deprecated.in favor ofexpectTriggeredDeadlines(Object...)ResultValidatorImpl.expectDeadlinesMet(Object... expected) ResultValidator.expectDeadlinesMetMatching(org.hamcrest.Matcher<? extends List<? super DeadlineMessage<?>>> matcher) Deprecated.in favor ofexpectTriggeredDeadlinesMatching(Matcher)ResultValidatorImpl.expectDeadlinesMetMatching(org.hamcrest.Matcher<? extends List<? super DeadlineMessage<?>>> matcher) ResultValidator.expectEvents(Object... expectedEvents) Expect the given set of events to have been published.ResultValidator.expectEvents(EventMessage<?>... expectedEvents) Expect the given set of events to have been published.ResultValidatorImpl.expectEvents(Object... expectedEvents) ResultValidatorImpl.expectEvents(EventMessage<?>... expectedEvents) ResultValidator.expectEventsMatching(org.hamcrest.Matcher<? extends List<? super EventMessage<?>>> matcher) Expect the published events to match the givenmatcher.ResultValidatorImpl.expectEventsMatching(org.hamcrest.Matcher<? extends List<? super EventMessage<?>>> matcher) ResultValidator.expectException(Class<? extends Throwable> expectedException) Expect the givenexpectedExceptionto occur during command handler execution.ResultValidator.expectException(org.hamcrest.Matcher<?> matcher) Expect an exception to occur during command handler execution that matches with the givenmatcher.ResultValidatorImpl.expectException(Class<? extends Throwable> expectedException) ResultValidatorImpl.expectException(org.hamcrest.Matcher<?> matcher) ResultValidator.expectExceptionDetails(Class<?> exceptionDetails) Expect the givenexceptionDetailstype to occur during command handler execution.ResultValidator.expectExceptionDetails(Object exceptionDetails) Expect the givenexceptionDetailsto occur during command handler execution.ResultValidator.expectExceptionDetails(org.hamcrest.Matcher<?> matcher) Expect exception details to occur during command handler execution that matches with the givenmatcher.ResultValidatorImpl.expectExceptionDetails(Class<?> exceptionDetails) ResultValidatorImpl.expectExceptionDetails(Object exceptionDetails) ResultValidatorImpl.expectExceptionDetails(org.hamcrest.Matcher<?> exceptionDetailsMatcher) ResultValidator.expectExceptionMessage(String exceptionMessage) Expect the givenexceptionMessageto occur during command handler execution.ResultValidator.expectExceptionMessage(org.hamcrest.Matcher<?> matcher) Expect an exception message to occur during command handler execution that matches with the givenmatcher.ResultValidatorImpl.expectExceptionMessage(String exceptionMessage) ResultValidatorImpl.expectExceptionMessage(org.hamcrest.Matcher<?> exceptionMessageMatcher) ResultValidator.expectMarkedDeleted()Asserts that the Aggregate has been marked for deletion.ResultValidatorImpl.expectMarkedDeleted()default ResultValidator<T> ResultValidator.expectNoEvents()Expect no events to have been published from the command.ResultValidator.expectNoScheduledDeadline(Duration durationToScheduledTime, Object deadline) Asserts that no deadline equal to the givendeadlinehas been scheduled after the givendurationToScheduledTime.ResultValidator.expectNoScheduledDeadline(Instant scheduledTime, Object deadline) Asserts that no deadline equal to the givendeadlinehas been scheduled at the givenscheduledTime.ResultValidator.expectNoScheduledDeadline(Instant from, Instant to, Object deadline) Asserts that no deadline equal to the givendeadlinehas been scheduled between thetoandfromtimes, wheretoandfromare inclusive.ResultValidatorImpl.expectNoScheduledDeadline(Duration durationToScheduledTime, Object deadline) ResultValidatorImpl.expectNoScheduledDeadline(Instant scheduledTime, Object deadline) ResultValidatorImpl.expectNoScheduledDeadline(Instant from, Instant to, Object deadline) ResultValidator.expectNoScheduledDeadlineMatching(Duration durationToScheduledTime, org.hamcrest.Matcher<? super DeadlineMessage<?>> matcher) Asserts that no deadline matching the givenmatchershould be scheduled after the givendurationToScheduledTime.ResultValidator.expectNoScheduledDeadlineMatching(Instant from, Instant to, org.hamcrest.Matcher<? super DeadlineMessage<?>> matcher) Asserts that no deadline matching the givenmatcherhas been scheduled between thetoandfromtimes, wheretoandfromare inclusive.ResultValidator.expectNoScheduledDeadlineMatching(Instant scheduledTime, org.hamcrest.Matcher<? super DeadlineMessage<?>> matcher) Asserts that no deadline matching the givenmatcherhas been scheduled at the givenscheduledTime.ResultValidator.expectNoScheduledDeadlineMatching(org.hamcrest.Matcher<? super DeadlineMessage<?>> matcher) Asserts that no deadline matching the givenmatcheris scheduled.ResultValidatorImpl.expectNoScheduledDeadlineMatching(Duration durationToScheduledTime, org.hamcrest.Matcher<? super DeadlineMessage<?>> matcher) ResultValidatorImpl.expectNoScheduledDeadlineMatching(Instant from, Instant to, org.hamcrest.Matcher<? super DeadlineMessage<?>> matcher) ResultValidatorImpl.expectNoScheduledDeadlineMatching(Instant scheduledTime, org.hamcrest.Matcher<? super DeadlineMessage<?>> matcher) ResultValidatorImpl.expectNoScheduledDeadlineMatching(org.hamcrest.Matcher<? super DeadlineMessage<?>> matcher) ResultValidator.expectNoScheduledDeadlineOfType(Duration durationToScheduledTime, Class<?> deadlineType) Asserts that no deadline of the givendeadlineTypehas been scheduled after the givendurationToScheduledTime.ResultValidator.expectNoScheduledDeadlineOfType(Instant scheduledTime, Class<?> deadlineType) Asserts that no deadline with the givendeadlineTypehas been scheduled at the givenscheduledTime.ResultValidator.expectNoScheduledDeadlineOfType(Instant from, Instant to, Class<?> deadlineType) Asserts that no deadline with the givendeadlineTypehas been scheduled between thetoandfromtimes, wheretoandfromare inclusive.ResultValidatorImpl.expectNoScheduledDeadlineOfType(Duration durationToScheduledTime, Class<?> deadlineType) ResultValidatorImpl.expectNoScheduledDeadlineOfType(Instant scheduledTime, Class<?> deadlineType) ResultValidatorImpl.expectNoScheduledDeadlineOfType(Instant from, Instant to, Class<?> deadlineType) ResultValidator.expectNoScheduledDeadlines()Asserts that no deadlines are scheduled.ResultValidatorImpl.expectNoScheduledDeadlines()ResultValidator.expectNoScheduledDeadlineWithName(Duration durationToScheduledTime, String deadlineName) Asserts that no deadline with the givendeadlineNamehas been scheduled after the givendurationToScheduledTime.ResultValidator.expectNoScheduledDeadlineWithName(Instant scheduledTime, String deadlineName) Asserts that no deadline with the givendeadlineNamehas been scheduled at the givenscheduledTime.ResultValidator.expectNoScheduledDeadlineWithName(Instant from, Instant to, String deadlineName) Asserts that no deadline with the givendeadlineNamehas been scheduled between thetoandfromtimes, wheretoandfromare inclusive.ResultValidatorImpl.expectNoScheduledDeadlineWithName(Duration durationToScheduledTime, String deadlineName) ResultValidatorImpl.expectNoScheduledDeadlineWithName(Instant scheduledTime, String deadlineName) ResultValidatorImpl.expectNoScheduledDeadlineWithName(Instant from, Instant to, String deadlineName) ResultValidator.expectNotMarkedDeleted()Asserts that the Aggregate has NOT been marked for deletion.ResultValidatorImpl.expectNotMarkedDeleted()ResultValidator.expectResultMessage(CommandResultMessage<?> expectedResultMessage) Expect the command handler to return the givenexpectedResultMessageafter execution.ResultValidatorImpl.expectResultMessage(CommandResultMessage<?> expectedResultMessage) ResultValidator.expectResultMessageMatching(org.hamcrest.Matcher<? super CommandResultMessage<?>> matcher) Expect the command handler to return a value that matches the givenmatcherafter execution.ResultValidatorImpl.expectResultMessageMatching(org.hamcrest.Matcher<? super CommandResultMessage<?>> matcher) ResultValidator.expectResultMessagePayload(Object expectedPayload) Expect the command handler to return the givenexpectedPayloadafter execution.ResultValidatorImpl.expectResultMessagePayload(Object expectedPayload) ResultValidator.expectResultMessagePayloadMatching(org.hamcrest.Matcher<?> matcher) Expect the command handler to return a payload that matches the givenmatcherafter execution.ResultValidatorImpl.expectResultMessagePayloadMatching(org.hamcrest.Matcher<?> matcher) ResultValidator.expectScheduledDeadline(Duration duration, Object deadline) Asserts that a deadline equal to the givendeadlinehas been scheduled after the givenduration.ResultValidator.expectScheduledDeadline(Instant scheduledTime, Object deadline) Asserts that a deadline equal to the givendeadlinehas been scheduled at the givenscheduledTime.ResultValidatorImpl.expectScheduledDeadline(Duration duration, Object deadline) ResultValidatorImpl.expectScheduledDeadline(Instant scheduledTime, Object deadline) ResultValidator.expectScheduledDeadlineMatching(Duration duration, org.hamcrest.Matcher<? super DeadlineMessage<?>> matcher) Asserts that a deadline scheduled after givendurationmatches the givenmatcher.ResultValidator.expectScheduledDeadlineMatching(Instant scheduledTime, org.hamcrest.Matcher<? super DeadlineMessage<?>> matcher) Asserts that a deadline matching the givenmatcherhas been scheduled at the givenscheduledTime.ResultValidatorImpl.expectScheduledDeadlineMatching(Duration duration, org.hamcrest.Matcher<? super DeadlineMessage<?>> matcher) ResultValidatorImpl.expectScheduledDeadlineMatching(Instant scheduledTime, org.hamcrest.Matcher<? super DeadlineMessage<?>> matcher) ResultValidator.expectScheduledDeadlineOfType(Duration duration, Class<?> deadlineType) Asserts that a deadline of the givendeadlineTypehas been scheduled after the givenduration.ResultValidator.expectScheduledDeadlineOfType(Instant scheduledTime, Class<?> deadlineType) Asserts that a deadline of the givendeadlineTypehas been scheduled at the givenscheduledTime.ResultValidatorImpl.expectScheduledDeadlineOfType(Duration duration, Class<?> deadlineType) ResultValidatorImpl.expectScheduledDeadlineOfType(Instant scheduledTime, Class<?> deadlineType) ResultValidator.expectScheduledDeadlineWithName(Duration duration, String deadlineName) Asserts that a deadline with the givendeadlineNamehas been scheduled after the givenduration.ResultValidator.expectScheduledDeadlineWithName(Instant scheduledTime, String deadlineName) Asserts that a deadline with the givendeadlineNamehas been scheduled at the givenscheduledTime.ResultValidatorImpl.expectScheduledDeadlineWithName(Duration duration, String deadlineName) ResultValidatorImpl.expectScheduledDeadlineWithName(Instant scheduledTime, String deadlineName) 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.ResultValidatorImpl.expectState(Consumer<T> aggregateStateValidator) ResultValidator.expectSuccessfulHandlerExecution()Expect a successful execution of the given command handler, regardless of the actual return value.ResultValidatorImpl.expectSuccessfulHandlerExecution()ResultValidator.expectTriggeredDeadlines(Object... expected) Asserts that givenexpecteddeadlines have been triggered.ResultValidatorImpl.expectTriggeredDeadlines(Object... expected) ResultValidator.expectTriggeredDeadlinesMatching(org.hamcrest.Matcher<? extends List<? super DeadlineMessage<?>>> matcher) Asserts that deadlines matching the givenmatcherhave been triggered for this aggregate.ResultValidatorImpl.expectTriggeredDeadlinesMatching(org.hamcrest.Matcher<? extends List<? super DeadlineMessage<?>>> matcher) ResultValidator.expectTriggeredDeadlinesOfType(Class<?>... expectedDeadlineTypes) Asserts that the givenexpectedDeadlineTypeshave been triggered.ResultValidatorImpl.expectTriggeredDeadlinesOfType(Class<?>... expectedDeadlineTypes) ResultValidator.expectTriggeredDeadlinesWithName(String... expectedDeadlineNames) Asserts that the givenexpectedDeadlineNameshave been triggered.ResultValidatorImpl.expectTriggeredDeadlinesWithName(String... expectedDeadlineNames) Dispatches the given command to the appropriate command handler and records all activity in the fixture for result validation.Dispatches the given command and meta-data to the appropriate command handler and records all activity in the fixture for result validation.AggregateTestFixture.whenConstructing(Callable<T> aggregateFactory) TestExecutor.whenConstructing(Callable<T> aggregateFactory) Invokes the givenaggregateFactoryexpecting an aggregate instance of typeTto be returned.AggregateTestFixture.whenInvoking(String aggregateId, Consumer<T> aggregateSupplier) TestExecutor.whenInvoking(String aggregateIdentifier, Consumer<T> aggregateConsumer) Invokes the givenaggregateConsumerafter loading an aggregate of typeTbased on the givenaggregateIdentifier.AggregateTestFixture.whenThenTimeAdvancesTo(Instant newPointInTime) Deprecated.TestExecutor.whenThenTimeAdvancesTo(Instant newPointInTime) Deprecated.since 4.6.AggregateTestFixture.whenThenTimeElapses(Duration elapsedTime) Deprecated.TestExecutor.whenThenTimeElapses(Duration elapsedTime) Deprecated.since 4.6.AggregateTestFixture.whenTimeAdvancesTo(Instant newPointInTime) default ResultValidator<T> TestExecutor.whenTimeAdvancesTo(Instant newPointInTime) Simulates the time advancing in the current given state using anInstantas the unit of time.AggregateTestFixture.whenTimeElapses(Duration elapsedTime) default ResultValidator<T> TestExecutor.whenTimeElapses(Duration elapsedTime) Simulates the time elapsing in the current given state using aDurationas the unit of time.
TestExecutor.whenTimeAdvancesTo(Instant).