Package | Description |
---|---|
org.axonframework.test.saga |
Modifier and Type | Class and Description |
---|---|
class |
SagaTestFixture<T>
Fixture for testing Annotated Sagas based on events and time passing.
|
Modifier and Type | Method and Description |
---|---|
FixtureConfiguration |
SagaTestFixture.registerDeadlineDispatchInterceptor(MessageDispatchInterceptor<? super DeadlineMessage<?>> deadlineDispatchInterceptor) |
FixtureConfiguration |
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 |
SagaTestFixture.registerDeadlineHandlerInterceptor(MessageHandlerInterceptor<? super DeadlineMessage<?>> deadlineHandlerInterceptor) |
FixtureConfiguration |
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 |
SagaTestFixture.registerEventHandlerInterceptor(MessageHandlerInterceptor<? super EventMessage<?>> eventHandlerInterceptor) |
default FixtureConfiguration |
FixtureConfiguration.registerEventHandlerInterceptor(MessageHandlerInterceptor<? super EventMessage<?>> eventHandlerInterceptor)
Registers a
MessageHandlerInterceptor for EventMessages . |
FixtureConfiguration |
SagaTestFixture.registerFieldFilter(FieldFilter fieldFilter) |
FixtureConfiguration |
FixtureConfiguration.registerFieldFilter(FieldFilter fieldFilter)
Registers the given
fieldFilter , which is used to define which Fields are used when comparing objects. |
FixtureConfiguration |
SagaTestFixture.registerHandlerDefinition(HandlerDefinition handlerDefinition) |
FixtureConfiguration |
FixtureConfiguration.registerHandlerDefinition(HandlerDefinition handlerDefinition)
Registers a
HandlerDefinition within this fixture. |
FixtureConfiguration |
SagaTestFixture.registerHandlerEnhancerDefinition(HandlerEnhancerDefinition handlerEnhancerDefinition) |
FixtureConfiguration |
FixtureConfiguration.registerHandlerEnhancerDefinition(HandlerEnhancerDefinition handlerEnhancerDefinition)
Registers a
HandlerEnhancerDefinition within this fixture. |
FixtureConfiguration |
SagaTestFixture.registerIgnoredField(Class<?> declaringClass,
String fieldName) |
FixtureConfiguration |
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 |
SagaTestFixture.registerListenerInvocationErrorHandler(ListenerInvocationErrorHandler listenerInvocationErrorHandler) |
FixtureConfiguration |
FixtureConfiguration.registerListenerInvocationErrorHandler(ListenerInvocationErrorHandler listenerInvocationErrorHandler)
Registers a
ListenerInvocationErrorHandler to be set for the Saga to deal with exceptions being thrown from within Saga Event Handlers. |
FixtureConfiguration |
SagaTestFixture.registerParameterResolverFactory(ParameterResolverFactory parameterResolverFactory) |
FixtureConfiguration |
FixtureConfiguration.registerParameterResolverFactory(ParameterResolverFactory parameterResolverFactory)
Registers a
ParameterResolverFactory within this fixture. |
FixtureConfiguration |
SagaTestFixture.registerResourceInjector(ResourceInjector resourceInjector) |
FixtureConfiguration |
FixtureConfiguration.registerResourceInjector(ResourceInjector resourceInjector)
Registers a
ResourceInjector within this fixture. |
FixtureConfiguration |
SagaTestFixture.registerStartRecordingCallback(Runnable onStartRecordingCallback) |
FixtureConfiguration |
FixtureConfiguration.registerStartRecordingCallback(Runnable onStartRecordingCallback)
Registers a callback to be invoked when the fixture execution starts recording.
|
FixtureConfiguration |
SagaTestFixture.suppressExceptionInGivenPhase(boolean suppress) |
default FixtureConfiguration |
FixtureConfiguration.suppressExceptionInGivenPhase(boolean suppress)
Configure whether the fixture should suppress exceptions thrown during the given-phase.
|
FixtureConfiguration |
SagaTestFixture.withTransienceCheckDisabled() |
FixtureConfiguration |
FixtureConfiguration.withTransienceCheckDisabled()
Disables the check that injected resources are stored in fields that are marked 'transient'.
|
Copyright © 2010–2024. All rights reserved.