Skip to content

Commit 70638b9

Browse files
committed
[tlinh2110] Change test name
1 parent b0d331f commit 70638b9

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎spring-security-core/src/test/java/org/baeldung/methodsecurity/TestMethodSecurity.java‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,11 @@ public void givenListContainCurrentUsername_whenJoinUsernames_thenReturnUsername
133133
usernames.add("jack");
134134
String containCurrentUser = userRoleService.joinUsernames(usernames);
135135
assertEquals("john;jack", containCurrentUser);
136-
137136
}
138137

139138
@Test
140139
@WithMockUser(username = "john")
141-
public void givenListNotContainCurrentUsername_whenCallContainCurrentUser_thenReturnAccessDenied() {
140+
public void givenListContainCurrentUsername_whenCallJoinUsernamesAndRoles_thenReturnUsernameAndRoles() {
142141
List<String> usernames = new ArrayList<>();
143142
usernames.add("jane");
144143
usernames.add("john");

0 commit comments

Comments
 (0)