Skip to content

Commit 386c6ca

Browse files
committed
Fix typo in test
1 parent 1bf8756 commit 386c6ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-test/src/test/java/org/springframework/test/web/servlet/htmlunit/HtmlUnitRequestBuilderTests.java

Lines changed: 2 additions & 2 deletions
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

0 commit comments

Comments
 (0)