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> |
FixtureConfiguration.registerAggregateFactory(AggregateFactory<T> aggregateFactory)
Registers the given
aggregateFactory with the fixture. |
FixtureConfiguration<T> |
AggregateTestFixture.registerAggregateFactory(AggregateFactory<T> aggregateFactory) |
FixtureConfiguration<T> |
FixtureConfiguration.registerAnnotatedCommandHandler(Object annotatedCommandHandler)
Registers an
annotatedCommandHandler with this fixture. |
FixtureConfiguration<T> |
AggregateTestFixture.registerAnnotatedCommandHandler(Object annotatedCommandHandler) |
FixtureConfiguration<T> |
FixtureConfiguration.registerCommandDispatchInterceptor(MessageDispatchInterceptor<? super CommandMessage<?>> commandDispatchInterceptor)
Register a
MessageDispatchInterceptor for CommandMessage s which will be invoked before any
command is dispatched on the CommandBus to perform a task specified in the interceptor. |
FixtureConfiguration<T> |
AggregateTestFixture.registerCommandDispatchInterceptor(MessageDispatchInterceptor<? super CommandMessage<?>> commandDispatchInterceptor) |
FixtureConfiguration<T> |
FixtureConfiguration.registerCommandHandler(Class<?> payloadType,
MessageHandler<CommandMessage<?>> commandHandler)
Registers a
commandHandler to handle commands of the given commandType with the
command bus used by this fixture. |
FixtureConfiguration<T> |
AggregateTestFixture.registerCommandHandler(Class<?> payloadType,
MessageHandler<CommandMessage<?>> commandHandler) |
FixtureConfiguration<T> |
FixtureConfiguration.registerCommandHandler(String commandName,
MessageHandler<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,
MessageHandler<CommandMessage<?>> commandHandler) |
FixtureConfiguration<T> |
FixtureConfiguration.registerCommandHandlerInterceptor(MessageHandlerInterceptor<? super CommandMessage<?>> commandHandlerInterceptor)
Register a
MessageHandlerInterceptor for CommandMessage s 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.registerCommandHandlerInterceptor(MessageHandlerInterceptor<? super CommandMessage<?>> commandHandlerInterceptor) |
FixtureConfiguration<T> |
FixtureConfiguration.registerCommandTargetResolver(CommandTargetResolver commandTargetResolver)
Registers the
CommandTargetResolver within this fixture. |
FixtureConfiguration<T> |
AggregateTestFixture.registerCommandTargetResolver(CommandTargetResolver commandTargetResolver) |
FixtureConfiguration<T> |
FixtureConfiguration.registerDeadlineDispatchInterceptor(MessageDispatchInterceptor<? super 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.registerDeadlineDispatchInterceptor(MessageDispatchInterceptor<? super DeadlineMessage<?>> deadlineDispatchInterceptor) |
FixtureConfiguration<T> |
FixtureConfiguration.registerDeadlineHandlerInterceptor(MessageHandlerInterceptor<? super 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.registerDeadlineHandlerInterceptor(MessageHandlerInterceptor<? super DeadlineMessage<?>> deadlineHandlerInterceptor) |
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.registerFieldFilter(FieldFilter fieldFilter) |
FixtureConfiguration<T> |
FixtureConfiguration.registerHandlerDefinition(HandlerDefinition handlerDefinition)
Registers a
HandlerDefinition within this fixture. |
FixtureConfiguration<T> |
AggregateTestFixture.registerHandlerDefinition(HandlerDefinition handlerDefinition) |
FixtureConfiguration<T> |
FixtureConfiguration.registerHandlerEnhancerDefinition(HandlerEnhancerDefinition handlerEnhancerDefinition)
Registers a
HandlerEnhancerDefinition within this fixture. |
FixtureConfiguration<T> |
AggregateTestFixture.registerHandlerEnhancerDefinition(HandlerEnhancerDefinition handlerEnhancerDefinition) |
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.registerIgnoredField(Class<?> declaringClass,
String fieldName) |
FixtureConfiguration<T> |
FixtureConfiguration.registerInjectableResource(Object resource)
Registers a resource that is eligible for injection in handler method (e.g.
|
FixtureConfiguration<T> |
AggregateTestFixture.registerInjectableResource(Object resource) |
FixtureConfiguration<T> |
FixtureConfiguration.registerParameterResolverFactory(ParameterResolverFactory parameterResolverFactory)
Registers a
ParameterResolverFactory within this fixture. |
FixtureConfiguration<T> |
AggregateTestFixture.registerParameterResolverFactory(ParameterResolverFactory parameterResolverFactory) |
FixtureConfiguration<T> |
FixtureConfiguration.registerRepository(Repository<T> repository)
Registers an arbitrary
repository with the fixture. |
FixtureConfiguration<T> |
AggregateTestFixture.registerRepository(Repository<T> repository) |
FixtureConfiguration<T> |
FixtureConfiguration.registerRepositoryProvider(RepositoryProvider repositoryProvider)
Registers repository provider with the fixture.
|
FixtureConfiguration<T> |
AggregateTestFixture.registerRepositoryProvider(RepositoryProvider repositoryProvider) |
FixtureConfiguration<T> |
FixtureConfiguration.withSubtypes(Class<? extends T>... subtypes)
Registers subtypes of this aggregate to support aggregate polymorphism.
|
FixtureConfiguration<T> |
AggregateTestFixture.withSubtypes(Class<? extends T>... subtypes) |
Copyright © 2010–2022. All rights reserved.