| Package | Description |
|---|---|
| org.axonframework.test.aggregate |
| Modifier and Type | Class and Description |
|---|---|
class |
AggregateTestFixture<T>
A test fixture that allows the execution of given-when-then style test cases.
|
| Modifier and Type | Method and Description |
|---|---|
FixtureConfiguration<T> |
AggregateTestFixture.registerAggregateFactory(org.axonframework.eventsourcing.AggregateFactory<T> aggregateFactory) |
FixtureConfiguration<T> |
FixtureConfiguration.registerAggregateFactory(org.axonframework.eventsourcing.AggregateFactory<T> aggregateFactory)
Registers the given
aggregateFactory with the fixture. |
FixtureConfiguration<T> |
AggregateTestFixture.registerAnnotatedCommandHandler(Object annotatedCommandHandler) |
FixtureConfiguration<T> |
FixtureConfiguration.registerAnnotatedCommandHandler(Object annotatedCommandHandler)
Registers an
annotatedCommandHandler with this fixture. |
FixtureConfiguration<T> |
AggregateTestFixture.registerCommandDispatchInterceptor(org.axonframework.messaging.MessageDispatchInterceptor<? super org.axonframework.commandhandling.CommandMessage<?>> commandDispatchInterceptor) |
FixtureConfiguration<T> |
FixtureConfiguration.registerCommandDispatchInterceptor(org.axonframework.messaging.MessageDispatchInterceptor<? super org.axonframework.commandhandling.CommandMessage<?>> commandDispatchInterceptor)
Register a
MessageDispatchInterceptor for CommandMessages which will be invoked before any
command is dispatched on the CommandBus to perform a task specified in the interceptor. |
FixtureConfiguration<T> |
AggregateTestFixture.registerCommandHandler(Class<?> payloadType,
org.axonframework.messaging.MessageHandler<org.axonframework.commandhandling.CommandMessage<?>> commandHandler) |
FixtureConfiguration<T> |
FixtureConfiguration.registerCommandHandler(Class<?> payloadType,
org.axonframework.messaging.MessageHandler<org.axonframework.commandhandling.CommandMessage<?>> commandHandler)
Registers a
commandHandler to handle commands of the given commandType with the
command bus used by this fixture. |
FixtureConfiguration<T> |
AggregateTestFixture.registerCommandHandler(String commandName,
org.axonframework.messaging.MessageHandler<org.axonframework.commandhandling.CommandMessage<?>> commandHandler) |
FixtureConfiguration<T> |
FixtureConfiguration.registerCommandHandler(String commandName,
org.axonframework.messaging.MessageHandler<org.axonframework.commandhandling.CommandMessage<?>> commandHandler)
Registers a
commandHandler to handle commands of the given commandType with the
command bus used by this fixture. |
FixtureConfiguration<T> |
AggregateTestFixture.registerCommandHandlerInterceptor(org.axonframework.messaging.MessageHandlerInterceptor<? super org.axonframework.commandhandling.CommandMessage<?>> commandHandlerInterceptor) |
FixtureConfiguration<T> |
FixtureConfiguration.registerCommandHandlerInterceptor(org.axonframework.messaging.MessageHandlerInterceptor<? super org.axonframework.commandhandling.CommandMessage<?>> commandHandlerInterceptor)
Register a
MessageHandlerInterceptor for CommandMessages which will be invoked before or after
the command has been dispatched on the CommandBus to perform a task specified in the interceptor. |
FixtureConfiguration<T> |
AggregateTestFixture.registerCommandTargetResolver(org.axonframework.modelling.command.CommandTargetResolver commandTargetResolver) |
FixtureConfiguration<T> |
FixtureConfiguration.registerCommandTargetResolver(org.axonframework.modelling.command.CommandTargetResolver commandTargetResolver)
Registers the
CommandTargetResolver within this fixture. |
FixtureConfiguration<T> |
AggregateTestFixture.registerDeadlineDispatchInterceptor(org.axonframework.messaging.MessageDispatchInterceptor<? super org.axonframework.deadline.DeadlineMessage<?>> deadlineDispatchInterceptor) |
FixtureConfiguration<T> |
FixtureConfiguration.registerDeadlineDispatchInterceptor(org.axonframework.messaging.MessageDispatchInterceptor<? super org.axonframework.deadline.DeadlineMessage<?>> deadlineDispatchInterceptor)
Registers a deadline dispatch interceptor which will always be invoked before a deadline is dispatched
(scheduled) on the
DeadlineManager to perform a task specified in the
interceptor. |
FixtureConfiguration<T> |
AggregateTestFixture.registerDeadlineHandlerInterceptor(org.axonframework.messaging.MessageHandlerInterceptor<? super org.axonframework.deadline.DeadlineMessage<?>> deadlineHandlerInterceptor) |
FixtureConfiguration<T> |
FixtureConfiguration.registerDeadlineHandlerInterceptor(org.axonframework.messaging.MessageHandlerInterceptor<? super org.axonframework.deadline.DeadlineMessage<?>> deadlineHandlerInterceptor)
Registers a deadline handler interceptor which will always be invoked before a deadline is handled to perform a
task specified in the interceptor.
|
FixtureConfiguration<T> |
AggregateTestFixture.registerFieldFilter(FieldFilter fieldFilter) |
FixtureConfiguration<T> |
FixtureConfiguration.registerFieldFilter(FieldFilter fieldFilter)
Registers the given
fieldFilter, which is used to define which Fields are used when comparing objects. |
FixtureConfiguration<T> |
AggregateTestFixture.registerHandlerDefinition(org.axonframework.messaging.annotation.HandlerDefinition handlerDefinition) |
FixtureConfiguration<T> |
FixtureConfiguration.registerHandlerDefinition(org.axonframework.messaging.annotation.HandlerDefinition handlerDefinition)
Registers a
HandlerDefinition within this fixture. |
FixtureConfiguration<T> |
AggregateTestFixture.registerHandlerEnhancerDefinition(org.axonframework.messaging.annotation.HandlerEnhancerDefinition handlerEnhancerDefinition) |
FixtureConfiguration<T> |
FixtureConfiguration.registerHandlerEnhancerDefinition(org.axonframework.messaging.annotation.HandlerEnhancerDefinition handlerEnhancerDefinition)
Registers a
HandlerEnhancerDefinition within this fixture. |
FixtureConfiguration<T> |
AggregateTestFixture.registerIgnoredField(Class<?> declaringClass,
String fieldName) |
FixtureConfiguration<T> |
FixtureConfiguration.registerIgnoredField(Class<?> declaringClass,
String fieldName)
Indicates that a field with given
fieldName, which is declared in given declaringClass
is ignored when performing deep equality checks. |
FixtureConfiguration<T> |
AggregateTestFixture.registerInjectableResource(Object resource) |
FixtureConfiguration<T> |
FixtureConfiguration.registerInjectableResource(Object resource)
Registers a resource that is eligible for injection in handler method (e.g.
|
FixtureConfiguration<T> |
AggregateTestFixture.registerParameterResolverFactory(org.axonframework.messaging.annotation.ParameterResolverFactory parameterResolverFactory) |
FixtureConfiguration<T> |
FixtureConfiguration.registerParameterResolverFactory(org.axonframework.messaging.annotation.ParameterResolverFactory parameterResolverFactory)
Registers a
ParameterResolverFactory within this fixture. |
FixtureConfiguration<T> |
AggregateTestFixture.registerRepository(org.axonframework.modelling.command.Repository<T> repository) |
FixtureConfiguration<T> |
FixtureConfiguration.registerRepository(org.axonframework.modelling.command.Repository<T> repository)
Registers an arbitrary
repository with the fixture. |
FixtureConfiguration<T> |
AggregateTestFixture.registerRepositoryProvider(org.axonframework.modelling.command.RepositoryProvider repositoryProvider) |
FixtureConfiguration<T> |
FixtureConfiguration.registerRepositoryProvider(org.axonframework.modelling.command.RepositoryProvider repositoryProvider)
Registers repository provider with the fixture.
|
FixtureConfiguration<T> |
AggregateTestFixture.withSubtypes(Class<? extends T>... subtypes) |
FixtureConfiguration<T> |
FixtureConfiguration.withSubtypes(Class<? extends T>... subtypes)
Registers subtypes of this aggregate to support aggregate polymorphism.
|
Copyright © 2010–2022. All rights reserved.