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

Examples of org.springframework.web.socket.sockjs.transport.session.TestSockJsSession


  public void setup() {
    super.setUp();
    MockitoAnnotations.initMocks(this);

    Map<String, Object> attributes = Collections.emptyMap();
    this.session = new TestSockJsSession(sessionId, new StubSockJsServiceConfig(), this.wsHandler, attributes);

    given(this.xhrHandler.getTransportType()).willReturn(TransportType.XHR);
    given(this.xhrHandler.createSession(sessionId, this.wsHandler, attributes)).willReturn(this.session);
    given(this.xhrSendHandler.getTransportType()).willReturn(TransportType.XHR_SEND);
    given(this.jsonpHandler.getTransportType()).willReturn(TransportType.JSONP);
View Full Code Here

TOP

Related Classes of org.springframework.web.socket.sockjs.transport.session.TestSockJsSession

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.