Search in sources :

Example 11 with ExecutorSubscribableChannel

use of org.springframework.messaging.support.ExecutorSubscribableChannel in project spring-framework by spring-projects.

the class TestMessageChannelDestinationResolver method setup.

@Before
public void setup() {
    TestMessageChannelDestinationResolver resolver = new TestMessageChannelDestinationResolver();
    this.myChannel = new ExecutorSubscribableChannel();
    resolver.registerMessageChannel("myChannel", this.myChannel);
    this.template = new TestDestinationResolvingMessagingTemplate();
    this.template.setDestinationResolver(resolver);
    this.headers = Collections.<String, Object>singletonMap("key", "value");
    this.postProcessor = new TestMessagePostProcessor();
}
Also used : ExecutorSubscribableChannel(org.springframework.messaging.support.ExecutorSubscribableChannel) Before(org.junit.Before)

Aggregations

ExecutorSubscribableChannel (org.springframework.messaging.support.ExecutorSubscribableChannel)11 Test (org.junit.Test)5 MessageChannel (org.springframework.messaging.MessageChannel)4 AtomicReference (java.util.concurrent.atomic.AtomicReference)3 Bean (org.springframework.context.annotation.Bean)3 ImmutableMessageChannelInterceptor (org.springframework.messaging.support.ImmutableMessageChannelInterceptor)3 TextMessage (org.springframework.web.socket.TextMessage)3 Before (org.junit.Before)2 Message (org.springframework.messaging.Message)2 MessageHandler (org.springframework.messaging.MessageHandler)2 MessagingException (org.springframework.messaging.MessagingException)2 StubMessageChannel (org.springframework.messaging.StubMessageChannel)2 SubscribableChannel (org.springframework.messaging.SubscribableChannel)2 SimpMessageHeaderAccessor (org.springframework.messaging.simp.SimpMessageHeaderAccessor)2 ChannelInterceptorAdapter (org.springframework.messaging.support.ChannelInterceptorAdapter)2 GenericMessage (org.springframework.messaging.support.GenericMessage)2 MessageHeaderAccessor (org.springframework.messaging.support.MessageHeaderAccessor)2 BinaryMessage (org.springframework.web.socket.BinaryMessage)2 WebSocketMessage (org.springframework.web.socket.WebSocketMessage)2 Principal (java.security.Principal)1