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

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

Introduction

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

Prototype

@Override
    public String getLocalAddr() 

Source Link

Usage

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

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

    assertThat(actualRequest.getLocalAddr()).isEqualTo("127.0.0.1");
}

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

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

    assertThat(actualRequest.getLocalAddr(), equalTo("127.0.0.1"));
}