Skip to content

Commit 8bec140

Browse files
amal-stackmarcusdacoregio
authored andcommitted
Fix typo in SecurityMockMvcResultMatchers.java
Change the first parameter's name of the AuthenticatedMatcher.withAuthentication() method from assesrtAuthentication to assertAuthentication
1 parent 556ae31 commit 8bec140

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/src/main/java/org/springframework/security/test/web/servlet/response/SecurityMockMvcResultMatchers.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,11 @@ public void match(MvcResult result) {
140140

141141
/**
142142
* Allows for any validating the authentication with arbitrary assertions
143-
* @param assesrtAuthentication the Consumer which validates the authentication
143+
* @param assertAuthentication the Consumer which validates the authentication
144144
* @return the AuthenticatedMatcher to perform additional assertions
145145
*/
146-
public AuthenticatedMatcher withAuthentication(Consumer<Authentication> assesrtAuthentication) {
147-
this.assertAuthentication = assesrtAuthentication;
146+
public AuthenticatedMatcher withAuthentication(Consumer<Authentication> assertAuthentication) {
147+
this.assertAuthentication = assertAuthentication;
148148
return this;
149149
}
150150

0 commit comments

Comments
 (0)