Uses of Interface
org.axonframework.test.aggregate.FixtureConfiguration
Packages that use FixtureConfiguration
-
Uses of FixtureConfiguration in org.axonframework.test.aggregate
Classes in org.axonframework.test.aggregate that implement FixtureConfigurationModifier and TypeClassDescriptionclassA test fixture that allows the execution of given-when-then style test cases.Methods in org.axonframework.test.aggregate that return FixtureConfigurationModifier and TypeMethodDescriptionAggregateTestFixture.registerAggregateFactory(AggregateFactory<T> aggregateFactory) FixtureConfiguration.registerAggregateFactory(AggregateFactory<T> aggregateFactory) Registers the givenaggregateFactorywith the fixture.AggregateTestFixture.registerAnnotatedCommandHandler(Object annotatedCommandHandler) FixtureConfiguration.registerAnnotatedCommandHandler(Object annotatedCommandHandler) Registers anannotatedCommandHandlerwith this fixture.AggregateTestFixture.registerCommandDispatchInterceptor(MessageDispatchInterceptor<? super CommandMessage<?>> commandDispatchInterceptor) FixtureConfiguration.registerCommandDispatchInterceptor(MessageDispatchInterceptor<? super CommandMessage<?>> commandDispatchInterceptor) Register aMessageDispatchInterceptorforCommandMessages which will be invoked before any command is dispatched on theCommandBusto perform a task specified in the interceptor.AggregateTestFixture.registerCommandHandler(Class<?> payloadType, MessageHandler<CommandMessage<?>> commandHandler) AggregateTestFixture.registerCommandHandler(String commandName, MessageHandler<CommandMessage<?>> commandHandler) FixtureConfiguration.registerCommandHandler(Class<?> payloadType, MessageHandler<CommandMessage<?>> commandHandler) Registers acommandHandlerto handle commands of the givencommandTypewith the command bus used by this fixture.FixtureConfiguration.registerCommandHandler(String commandName, MessageHandler<CommandMessage<?>> commandHandler) Registers acommandHandlerto handle commands of the givencommandTypewith the command bus used by this fixture.AggregateTestFixture.registerCommandHandlerInterceptor(MessageHandlerInterceptor<? super CommandMessage<?>> commandHandlerInterceptor) FixtureConfiguration.registerCommandHandlerInterceptor(MessageHandlerInterceptor<? super CommandMessage<?>> commandHandlerInterceptor) Register aMessageHandlerInterceptorforCommandMessages which will be invoked before or after the command has been dispatched on theCommandBusto perform a task specified in the interceptor.AggregateTestFixture.registerCommandTargetResolver(CommandTargetResolver commandTargetResolver) FixtureConfiguration.registerCommandTargetResolver(CommandTargetResolver commandTargetResolver) Registers theCommandTargetResolverwithin this fixture.AggregateTestFixture.registerDeadlineDispatchInterceptor(MessageDispatchInterceptor<? super DeadlineMessage<?>> deadlineDispatchInterceptor) FixtureConfiguration.registerDeadlineDispatchInterceptor(MessageDispatchInterceptor<? super DeadlineMessage<?>> deadlineDispatchInterceptor) Registers a deadline dispatch interceptor which will always be invoked before a deadline is dispatched (scheduled) on theDeadlineManagerto perform a task specified in the interceptor.AggregateTestFixture.registerDeadlineHandlerInterceptor(MessageHandlerInterceptor<? super DeadlineMessage<?>> deadlineHandlerInterceptor) 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.AggregateTestFixture.registerFieldFilter(FieldFilter fieldFilter) FixtureConfiguration.registerFieldFilter(FieldFilter fieldFilter) Registers the givenfieldFilter, which is used to define which Fields are used when comparing objects.AggregateTestFixture.registerHandlerDefinition(HandlerDefinition handlerDefinition) FixtureConfiguration.registerHandlerDefinition(HandlerDefinition handlerDefinition) Registers aHandlerDefinitionwithin this fixture.AggregateTestFixture.registerHandlerEnhancerDefinition(HandlerEnhancerDefinition handlerEnhancerDefinition) FixtureConfiguration.registerHandlerEnhancerDefinition(HandlerEnhancerDefinition handlerEnhancerDefinition) Registers aHandlerEnhancerDefinitionwithin this fixture.AggregateTestFixture.registerIgnoredField(Class<?> declaringClass, String fieldName) FixtureConfiguration.registerIgnoredField(Class<?> declaringClass, String fieldName) Indicates that a field with givenfieldName, which is declared in givendeclaringClassis ignored when performing deep equality checks.AggregateTestFixture.registerInjectableResource(Object resource) FixtureConfiguration.registerInjectableResource(Object resource) Registers a resource that is eligible for injection in handler method (e.g. methods annotated with@CommandHandler,@EventSourcingHandlerandEventHandler.default FixtureConfiguration<T> FixtureConfiguration.registerInjectableResources(Object... resources) Default implementation to register multiple resources in handler method (e.g. methods annotated with@CommandHandler,@EventSourcingHandlerandEventHandler.AggregateTestFixture.registerParameterResolverFactory(ParameterResolverFactory parameterResolverFactory) FixtureConfiguration.registerParameterResolverFactory(ParameterResolverFactory parameterResolverFactory) Registers aParameterResolverFactorywithin this fixture.AggregateTestFixture.registerRepository(Repository<T> repository) FixtureConfiguration.registerRepository(Repository<T> repository) Registers an arbitraryrepositorywith the fixture.AggregateTestFixture.registerRepositoryProvider(RepositoryProvider repositoryProvider) FixtureConfiguration.registerRepositoryProvider(RepositoryProvider repositoryProvider) Registers repository provider with the fixture.AggregateTestFixture.useStateStorage()FixtureConfiguration.useStateStorage()Configures the fixture for state stored aggregates.final FixtureConfiguration<T> AggregateTestFixture.withSubtypes(Class<? extends T>... subtypes) FixtureConfiguration.withSubtypes(Class<? extends T>... subtypes) Registers subtypes of this aggregate to support aggregate polymorphism.