MAPREDUCE-6750. Fix TestHSAdminServer#testRefreshSuperUserGroups (Kihwal Lee via Varun Saxena)

This commit is contained in:
Varun Saxena 2016-08-09 23:35:44 +05:30 committed by Kihwal Lee
parent c9199095f8
commit e714d82196
1 changed files with 2 additions and 1 deletions

View File

@ -187,7 +187,8 @@ public class TestHSAdminServer {
when(ugi.getRealUser()).thenReturn(superUser);
when(superUser.getShortUserName()).thenReturn("superuser");
when(superUser.getUserName()).thenReturn("superuser");
when(ugi.getGroupNames()).thenReturn(new String[] { "group3" });
when(ugi.getGroups())
.thenReturn(Arrays.asList(new String[] { "group3" }));
when(ugi.getUserName()).thenReturn("regularUser");
// Set super user groups not to include groups of regularUser