diff --git a/pxf/pxf-service/src/test/java/org/apache/hawq/pxf/service/utilities/SecuredHDFSTest.java b/pxf/pxf-service/src/test/java/org/apache/hawq/pxf/service/utilities/SecuredHDFSTest.java index a39a0df66e..daf684bfaa 100644 --- a/pxf/pxf-service/src/test/java/org/apache/hawq/pxf/service/utilities/SecuredHDFSTest.java +++ b/pxf/pxf-service/src/test/java/org/apache/hawq/pxf/service/utilities/SecuredHDFSTest.java @@ -44,6 +44,7 @@ public class SecuredHDFSTest { ServletContext mockContext; @Test + @SuppressWarnings("unchecked") public void nullToken() throws IOException { when(UserGroupInformation.isSecurityEnabled()).thenReturn(true); UserGroupInformation ugi = mock(UserGroupInformation.class); @@ -52,7 +53,7 @@ public void nullToken() throws IOException { SecuredHDFS.verifyToken(null, mockContext); verify(ugi).reloginFromKeytab(); - verify(ugi, never()).addToken(any()); + verify(ugi, never()).addToken(any(Token.class)); } @Test