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

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