Package org.axonframework.test.fixture
Class RecordingComponentsRegistry
java.lang.Object
org.axonframework.test.fixture.RecordingComponentsRegistry
A registry that holds references to the recording components created by
MessagesRecordingConfigurationEnhancer. Decorators store recording instances into this registry, and the
AxonTestFixture reads them to perform assertions.
This registry is registered as a regular component in the Configuration
and can be resolved via configuration.getComponent(RecordingComponentsRegistry.class).
- Since:
- 5.0.3
- Author:
- Mateusz Nowak
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable RecordingCommandBusReturns theRecordingCommandBusthat captures command messages dispatched through theCommandBus.@Nullable RecordingEventSinkReturns theRecordingEventSinkthat captures event messages published through theEventBusorEventStore.
-
Constructor Details
-
RecordingComponentsRegistry
public RecordingComponentsRegistry()
-
-
Method Details
-
commandBus
Returns theRecordingCommandBusthat captures command messages dispatched through theCommandBus.- Returns:
- the recording command bus, or
nullif the decorator has not yet run
-
eventSink
Returns theRecordingEventSinkthat captures event messages published through theEventBusorEventStore.- Returns:
- the recording event sink, or
nullif the decorator has not yet run
-