From c4b77aed7e756dd463fd88141054ea0e3acd6396 Mon Sep 17 00:00:00 2001 From: Varun Saxena Date: Tue, 9 Aug 2016 23:35:44 +0530 Subject: [PATCH] MAPREDUCE-6750. Fix TestHSAdminServer#testRefreshSuperUserGroups (Kihwal Lee via Varun Saxena) --- .../hadoop/mapreduce/v2/hs/server/TestHSAdminServer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-hs/src/test/java/org/apache/hadoop/mapreduce/v2/hs/server/TestHSAdminServer.java b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-hs/src/test/java/org/apache/hadoop/mapreduce/v2/hs/server/TestHSAdminServer.java index d8313479f3..1eb1d1c58d 100644 --- a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-hs/src/test/java/org/apache/hadoop/mapreduce/v2/hs/server/TestHSAdminServer.java +++ b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-hs/src/test/java/org/apache/hadoop/mapreduce/v2/hs/server/TestHSAdminServer.java @@ -187,7 +187,8 @@ public void testRefreshSuperUserGroups() throws Exception { 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