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:
Loredana Crusoveanu 2019-07-20 22:33:31 +03:00 committed by GitHub
commit b5f4e0db9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}