Class InMemoryMessageQueueTestConfiguration

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

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

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


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

    Constructors
    Constructor Description
    InMemoryMessageQueueTestConfiguration()  
  • Method Summary

    Modifier and Type Method Description
    de.otto.synapse.endpoint.receiver.MessageQueueReceiverEndpointFactory messageQueueReceiverEndpointFactory​(InMemoryChannels inMemoryChannels)  
    de.otto.synapse.endpoint.sender.MessageSenderEndpointFactory messageQueueSenderEndpointFactory​(de.otto.synapse.endpoint.MessageInterceptorRegistry interceptorRegistry, InMemoryChannels inMemoryChannels)  

    Methods inherited from class java.lang.Object

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

    • InMemoryMessageQueueTestConfiguration

      public InMemoryMessageQueueTestConfiguration()
  • Method Details

    • messageQueueSenderEndpointFactory

      @Bean(name={"messageQueueSenderEndpointFactory","sqsMessageQueueSenderEndpointFactory"}) public de.otto.synapse.endpoint.sender.MessageSenderEndpointFactory messageQueueSenderEndpointFactory​(de.otto.synapse.endpoint.MessageInterceptorRegistry interceptorRegistry, InMemoryChannels inMemoryChannels)
    • messageQueueReceiverEndpointFactory

      @Bean public de.otto.synapse.endpoint.receiver.MessageQueueReceiverEndpointFactory messageQueueReceiverEndpointFactory​(InMemoryChannels inMemoryChannels)