Skip to content

Commit

Permalink
Fix typo in SecurityMockMvcResultMatchers.java
Browse files Browse the repository at this point in the history
Change the first parameter's name of the AuthenticatedMatcher.withAuthentication() method from assesrtAuthentication to assertAuthentication
  • Loading branch information
amal-stack authored and marcusdacoregio committed Apr 19, 2023
1 parent 556ae31 commit 8bec140
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<Authentication> assesrtAuthentication) {
this.assertAuthentication = assesrtAuthentication;
public AuthenticatedMatcher withAuthentication(Consumer<Authentication> assertAuthentication) {
this.assertAuthentication = assertAuthentication;
return this;
}

Expand Down

0 comments on commit 8bec140

Please sign in to comment.