[BAEL-14274] - Fixed article code for https://www.baeldung.com/spring-security-method-security
This commit is contained in:
parent
447c8c3599
commit
c280f9ee4e
@ -80,7 +80,7 @@ public class TestMethodSecurity {
|
||||
|
||||
@Test
|
||||
@WithMockUser(username = "JOHN", authorities = { "SYS_ADMIN" })
|
||||
public void givenAuthoritySysAdmin_whenCallGetUsernameInLowerCase_thenReturnUsername() {
|
||||
public void givenAuthoritySysAdmin_whenCallGetUsernameLC_thenReturnUsername() {
|
||||
String username = userRoleService.getUsernameLC();
|
||||
assertEquals("john", username);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user