Package org.springframework.messaging

Examples of org.springframework.messaging.StubMessageChannel



  @Test
  public void test() {

    SubscribableChannel clientInboundChannel = new StubMessageChannel();
    MessageChannel clientOutboundChannel = new StubMessageChannel();
    SubscribableChannel brokerChannel = new StubMessageChannel();

    String[] destinationPrefixes = new String[] { "/foo", "/bar" };

    StompBrokerRelayRegistration registration = new StompBrokerRelayRegistration(
        clientInboundChannel, clientOutboundChannel, destinationPrefixes);
View Full Code Here


  private ThreadPoolTaskExecutor executor;


  @Before
  public void setup() {
    this.messageChannel = new StubMessageChannel();
    this.template = new GenericMessagingTemplate();
    this.template.setDefaultDestination(this.messageChannel);
    this.template.setDestinationResolver(new TestDestinationResolver());
    this.executor = new ThreadPoolTaskExecutor();
    this.executor.afterPropertiesSet();
View Full Code Here

  @Before
  public void setup() {

    this.tcpClient = new StubTcpOperations();

    this.brokerRelay = new StompBrokerRelayMessageHandler(new StubMessageChannel(),
        new StubMessageChannel(), new StubMessageChannel(), Arrays.asList("/topic")) {

      @Override
      protected void startInternal() {
        publishBrokerAvailableEvent(); // Force this, since we'll never actually connect
        super.startInternal();
View Full Code Here

    this.activeMQBroker.getSystemUsage().getTempUsage().setLimit(1024 * 1024 * 5);
    this.activeMQBroker.start();
  }

  private void createAndStartRelay() throws InterruptedException {
    this.relay = new StompBrokerRelayMessageHandler(new StubMessageChannel(),
        this.responseChannel, new StubMessageChannel(), Arrays.asList("/queue/", "/topic/"));
    this.relay.setRelayPort(this.port);
    this.relay.setApplicationEventPublisher(this.eventPublisher);
    this.relay.setSystemHeartbeatReceiveInterval(0);
    this.relay.setSystemHeartbeatSendInterval(0);

View Full Code Here

  private StubMessageChannel messageChannel;


  @Before
  public void setup() {
    this.messageChannel = new StubMessageChannel();
    this.messagingTemplate = new SimpMessagingTemplate(this.messageChannel);
  }
View Full Code Here

  @Before
  public void setup() {
    MockitoAnnotations.initMocks(this);
    this.registry = new DefaultUserSessionRegistry();
    DefaultUserDestinationResolver resolver = new DefaultUserDestinationResolver(this.registry);
    this.messageHandler = new UserDestinationMessageHandler(new StubMessageChannel(), this.brokerChannel, resolver);
  }
View Full Code Here

TOP

Related Classes of org.springframework.messaging.StubMessageChannel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.