You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There should be a SecurityMockMvcResultMatchers.withAuthorities(String...) method which does not care about the GrantedAuthority implementation.
If the currently authenticated user has a custom GrantedAuthority implementation with the GrantedAuthority#getAuthority() of CUSTOM, then the following should work: