diff --git a/test/src/main/java/org/springframework/security/test/web/servlet/response/SecurityMockMvcResultMatchers.java b/test/src/main/java/org/springframework/security/test/web/servlet/response/SecurityMockMvcResultMatchers.java index d27f1c5afb5..ae661d612a1 100644 --- a/test/src/main/java/org/springframework/security/test/web/servlet/response/SecurityMockMvcResultMatchers.java +++ b/test/src/main/java/org/springframework/security/test/web/servlet/response/SecurityMockMvcResultMatchers.java @@ -140,11 +140,11 @@ public void match(MvcResult result) { /** * Allows for any validating the authentication with arbitrary assertions - * @param assesrtAuthentication the Consumer which validates the authentication + * @param assertAuthentication the Consumer which validates the authentication * @return the AuthenticatedMatcher to perform additional assertions */ - public AuthenticatedMatcher withAuthentication(Consumer assesrtAuthentication) { - this.assertAuthentication = assesrtAuthentication; + public AuthenticatedMatcher withAuthentication(Consumer assertAuthentication) { + this.assertAuthentication = assertAuthentication; return this; }