[tlinh2110] Change test name

This commit is contained in:
linhvovn 2018-01-11 23:02:48 +08:00
parent b0d331f2dd
commit 70638b90f1
1 changed files with 1 additions and 2 deletions

View File

@ -133,12 +133,11 @@ public class TestMethodSecurity {
usernames.add("jack");
String containCurrentUser = userRoleService.joinUsernames(usernames);
assertEquals("john;jack", containCurrentUser);
}
@Test
@WithMockUser(username = "john")
public void givenListNotContainCurrentUsername_whenCallContainCurrentUser_thenReturnAccessDenied() {
public void givenListContainCurrentUsername_whenCallJoinUsernamesAndRoles_thenReturnUsernameAndRoles() {
List<String> usernames = new ArrayList<>();
usernames.add("jane");
usernames.add("john");