Search in sources :

Example 1 with DefaultSockJsFrameFormat

use of org.springframework.web.socket.sockjs.frame.DefaultSockJsFrameFormat in project spring-framework by spring-projects.

the class HttpSockJsSessionTests method setup.

@Before
public void setup() {
    super.setUp();
    this.frameFormat = new DefaultSockJsFrameFormat("%s");
    this.servletResponse = new MockHttpServletResponse();
    this.response = new ServletServerHttpResponse(this.servletResponse);
    this.servletRequest = new MockHttpServletRequest();
    this.servletRequest.setAsyncSupported(true);
    this.request = new ServletServerHttpRequest(this.servletRequest);
}
Also used : ServletServerHttpRequest(org.springframework.http.server.ServletServerHttpRequest) MockHttpServletRequest(org.springframework.mock.web.test.MockHttpServletRequest) ServletServerHttpResponse(org.springframework.http.server.ServletServerHttpResponse) DefaultSockJsFrameFormat(org.springframework.web.socket.sockjs.frame.DefaultSockJsFrameFormat) MockHttpServletResponse(org.springframework.mock.web.test.MockHttpServletResponse) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 ServletServerHttpRequest (org.springframework.http.server.ServletServerHttpRequest)1 ServletServerHttpResponse (org.springframework.http.server.ServletServerHttpResponse)1 MockHttpServletRequest (org.springframework.mock.web.test.MockHttpServletRequest)1 MockHttpServletResponse (org.springframework.mock.web.test.MockHttpServletResponse)1 DefaultSockJsFrameFormat (org.springframework.web.socket.sockjs.frame.DefaultSockJsFrameFormat)1