Fix typo in test · spring-projects/spring-framework@386c6ca

File tree

1 file changed

lines changed

  • spring-test/src/test/java/org/springframework/test/web/servlet/htmlunit

1 file changed

lines changed

Original file line numberDiff line numberDiff line change

@@ -897,9 +897,9 @@ private String getContextPath() {

897897

private static void assertUrlAndPorts(HttpServletRequest request, String url, int serverPort, boolean secure) {

898898

assertThat(request.getRequestURL()).asString().as("url").isEqualTo(url);

899899

assertThat(request.getServerPort()).as("server port").isEqualTo(serverPort);

900-

// In a mocked request, the local post is always the same as the server port.

900+

// In a mocked request, the local port is always the same as the server port.

901901

assertThat(request.getLocalPort()).as("local port").isEqualTo(serverPort);

902-

// Remote Port is always 80 (MockHttpServletRequest.DEFAULT_SERVER_PORT),

902+

// Remote port is always 80 (MockHttpServletRequest.DEFAULT_SERVER_PORT),

903903

// since a mocked request does not influence the remote host, port, or address.

904904

assertThat(request.getRemotePort()).as("remote port").isEqualTo(80);

905905