Example usage for org.springframework.mock.web MockHttpServletRequest getProtocol

List of usage examples for org.springframework.mock.web MockHttpServletRequest getProtocol

Introduction

In this page you can find the example usage for org.springframework.mock.web MockHttpServletRequest getProtocol.

Prototype

@Override
    public String getProtocol() 

Source Link

Usage

From source file:org.springframework.test.web.servlet.htmlunit.HtmlUnitRequestBuilderTest.java

@Test
public void buildRequestProtocol() throws Exception {
    MockHttpServletRequest actualRequest = requestBuilder.buildRequest(servletContext);

    assertThat(actualRequest.getProtocol()).isEqualTo("HTTP/1.1");
}

From source file:org.springframework.test.web.servlet.htmlunit.HtmlUnitRequestBuilderTests.java

@Test
public void buildRequestProtocol() throws Exception {
    MockHttpServletRequest actualRequest = requestBuilder.buildRequest(servletContext);

    assertThat(actualRequest.getProtocol(), equalTo("HTTP/1.1"));
}