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

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

Introduction

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

Prototype

@Override
    public String getLocalName() 

Source Link

Usage

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

@Test
public void buildRequestLocaleName() {
    MockHttpServletRequest actualRequest = requestBuilder.buildRequest(servletContext);

    assertThat(actualRequest.getLocalName()).isEqualTo("localhost");
}

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

@Test
public void buildRequestLocalName() {
    MockHttpServletRequest actualRequest = requestBuilder.buildRequest(servletContext);

    assertThat(actualRequest.getLocalName(), equalTo("localhost"));
}