Class MessagesRecordingConfigurationEnhancer

java.lang.Object
org.axonframework.test.fixture.MessagesRecordingConfigurationEnhancer
All Implemented Interfaces:
ConfigurationEnhancer

public class MessagesRecordingConfigurationEnhancer extends Object implements ConfigurationEnhancer
ConfigurationEnhancer that registers RecordingEventStore, RecordingEventSink and RecordingCommandBus. The recorded messages can then be used to assert expectations with test cases.
Since:
5.0.0
Author:
Mateusz Nowak
  • Constructor Details

    • MessagesRecordingConfigurationEnhancer

      public MessagesRecordingConfigurationEnhancer()
  • Method Details

    • enhance

      public void enhance(@Nonnull ComponentRegistry registry)
      Description copied from interface: ConfigurationEnhancer
      Enhances the given registry with, for example, additional components and decorators.
      Specified by:
      enhance in interface ConfigurationEnhancer
      Parameters:
      registry - The registry instance to enhance.
    • order

      public int order()
      Description copied from interface: ConfigurationEnhancer
      Returns the relative order this enhancer should be invoked in, compared to other instances.

      Use lower (negative) values for enhancers providing sensible defaults, and higher values for enhancers that should be able to override values potentially previously set. Defaults to 0 when not set.

      Specified by:
      order in interface ConfigurationEnhancer
      Returns:
      The order in which this enhancer should be invoked.