From c280f9ee4eb54417399d0eb2347626fbc775324e Mon Sep 17 00:00:00 2001 From: amit2103 Date: Mon, 1 Jul 2019 00:23:02 +0530 Subject: [PATCH] [BAEL-14274] - Fixed article code for https://www.baeldung.com/spring-security-method-security --- .../java/org/baeldung/methodsecurity/TestMethodSecurity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-security-core/src/test/java/org/baeldung/methodsecurity/TestMethodSecurity.java b/spring-security-core/src/test/java/org/baeldung/methodsecurity/TestMethodSecurity.java index 309ee3076d..009d9af9fc 100644 --- a/spring-security-core/src/test/java/org/baeldung/methodsecurity/TestMethodSecurity.java +++ b/spring-security-core/src/test/java/org/baeldung/methodsecurity/TestMethodSecurity.java @@ -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); }