Class InMemoryMessageLogTestConfiguration

java.lang.Object
de.otto.synapse.configuration.InMemoryMessageLogTestConfiguration

@Import(InMemoryChannelTestConfiguration.class)
public class InMemoryMessageLogTestConfiguration
extends java.lang.Object
Configuration used to implement tests. Use this, if you want to bypass Kinesis and other hard-to-test infrastructures and replace them by in-memory implementations.

InMemoryTestConfiguration can be activated by importing it into some other Configuration class:


 @Configuration
 @ImportAutoConfiguration(InMemoryMessageLogTestConfiguration.class)
 public class MyTestConfig {
     // ...
 }
 
  • Constructor Summary

    Constructors 
    Constructor Description
    InMemoryMessageLogTestConfiguration()  
  • Method Summary

    Modifier and Type Method Description
    de.otto.synapse.endpoint.receiver.MessageLogReceiverEndpointFactory messageLogReceiverEndpointFactory​(InMemoryChannels inMemoryChannels)  
    de.otto.synapse.endpoint.sender.MessageSenderEndpointFactory messageLogSenderEndpointFactory​(de.otto.synapse.endpoint.MessageInterceptorRegistry interceptorRegistry, InMemoryChannels inMemoryChannels)  
    de.otto.synapse.messagestore.MessageStoreFactory<de.otto.synapse.messagestore.SnapshotMessageStore> snapshotMessageStoreFactory()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • messageLogSenderEndpointFactory

      @Bean(name={"messageLogSenderEndpointFactory","kinesisMessageLogSenderEndpointFactory","kafkaMessageLogSenderEndpointFactory"}) public de.otto.synapse.endpoint.sender.MessageSenderEndpointFactory messageLogSenderEndpointFactory​(de.otto.synapse.endpoint.MessageInterceptorRegistry interceptorRegistry, InMemoryChannels inMemoryChannels)
    • snapshotMessageStoreFactory

      @Bean public de.otto.synapse.messagestore.MessageStoreFactory<de.otto.synapse.messagestore.SnapshotMessageStore> snapshotMessageStoreFactory()
    • messageLogReceiverEndpointFactory

      @Bean public de.otto.synapse.endpoint.receiver.MessageLogReceiverEndpointFactory messageLogReceiverEndpointFactory​(InMemoryChannels inMemoryChannels)