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(AggregateFactory<T> aggregateFactory) |
FixtureConfiguration<T> |
FixtureConfiguration.registerAggregateFactory(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(MessageDispatchInterceptor<CommandMessage<?>> commandDispatchInterceptor) |
FixtureConfiguration<T> |
FixtureConfiguration.registerCommandDispatchInterceptor(MessageDispatchInterceptor<CommandMessage<?>> commandDispatchInterceptor)
Register a command dispatch interceptor which will always be invoked before a command is dispatched on the
command bus to perform a task specified in the interceptor.
|
FixtureConfiguration<T> |
AggregateTestFixture.registerCommandHandler(Class<?> payloadType,
MessageHandler<CommandMessage<?>> commandHandler) |
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(String commandName,
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.registerCommandHandlerInterceptor(MessageHandlerInterceptor<CommandMessage<?>> commandHandlerInterceptor) |
FixtureConfiguration<T> |
FixtureConfiguration.registerCommandHandlerInterceptor(MessageHandlerInterceptor<CommandMessage<?>> commandHandlerInterceptor)
Register a command handler interceptor which may be invoked before or after the command has been dispatched on
the command bus to perform a task specified in the interceptor.
|
FixtureConfiguration<T> |
AggregateTestFixture.registerDeadlineDispatchInterceptor(MessageDispatchInterceptor<DeadlineMessage<?>> deadlineDispatchInterceptor) |
FixtureConfiguration<T> |
FixtureConfiguration.registerDeadlineDispatchInterceptor(MessageDispatchInterceptor<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(MessageHandlerInterceptor<DeadlineMessage<?>> deadlineHandlerInterceptor) |
FixtureConfiguration<T> |
FixtureConfiguration.registerDeadlineHandlerInterceptor(MessageHandlerInterceptor<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(HandlerDefinition handlerDefinition) |
FixtureConfiguration<T> |
FixtureConfiguration.registerHandlerDefinition(HandlerDefinition handlerDefinition)
Registers handler definition 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.registerRepository(Repository<T> repository) |
FixtureConfiguration<T> |
FixtureConfiguration.registerRepository(Repository<T> repository)
Registers an arbitrary
repository with the fixture. |
FixtureConfiguration<T> |
AggregateTestFixture.registerRepositoryProvider(RepositoryProvider repositoryProvider) |
FixtureConfiguration<T> |
FixtureConfiguration.registerRepositoryProvider(RepositoryProvider repositoryProvider)
Registers repository provider with the fixture.
|
Copyright © 2010–2018. All rights reserved.