This commit is contained in:
amit2103 2019-07-01 00:23:02 +05:30
parent 447c8c3599
commit c280f9ee4e

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