Merge pull request #7226 from amit2103/BAEL-14274-24
[BAEL-14274] - Fixed article code for https://www.baeldung.com/spring…
This commit is contained in:
commit
b5f4e0db9f
|
@ -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…
Reference in New Issue