Class RecordingEventStore

java.lang.Object
org.axonframework.test.fixture.RecordingEventSink
org.axonframework.test.fixture.RecordingEventStore
All Implemented Interfaces:
DescribableComponent, EventStore, SubscribableEventSource, EventBus, EventSink, StreamableEventSource, TrackingTokenSource

@Internal public class RecordingEventStore extends RecordingEventSink implements EventStore
An EventStore implementation recording all the events that are published.

The recorded events can then be used to assert expectations with test cases.

Since:
5.0.0
Author:
Allard Buijze, Mateusz Nowak
  • Constructor Details

    • RecordingEventStore

      public RecordingEventStore(EventStore delegate)
      Creates a new RecordingEventStore that will record all events published to the given delegate.
      Parameters:
      delegate - The EventStore to which events will be published.
  • Method Details