Package org.springframework.web.socket.sockjs.transport.session.WebSocketServerSockJsSessionTests

Examples of org.springframework.web.socket.sockjs.transport.session.WebSocketServerSockJsSessionTests.TestWebSocketServerSockJsSession


    this.webSocketSession.setOpen(true);
  }

  @Override
  protected TestWebSocketServerSockJsSession initSockJsSession() {
    return new TestWebSocketServerSockJsSession(this.sockJsConfig, this.webSocketHandler,
        Collections.<String, Object>emptyMap());
  }
View Full Code Here


      @Override
      public void afterConnectionEstablished(WebSocketSession session) throws Exception {
        session.sendMessage(new TextMessage("go go"));
      }
    };
    TestWebSocketServerSockJsSession session = new TestWebSocketServerSockJsSession(this.sockJsConfig, handler, null);
    session.initializeDelegateSession(this.webSocketSession);
    List<TextMessage> expected = Arrays.asList(new TextMessage("o"), new TextMessage("a[\"go go\"]"));
    assertEquals(expected, this.webSocketSession.getSentMessages());
  }
View Full Code Here

TOP

Related Classes of org.springframework.web.socket.sockjs.transport.session.WebSocketServerSockJsSessionTests.TestWebSocketServerSockJsSession

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.