Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
HAWQ-1650. Fix compilation issue in Java 7
Browse files Browse the repository at this point in the history
  • Loading branch information
Francisco Guerrero committed Aug 13, 2018
1 parent 4f12950 commit 9f33d8d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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
Expand Down

0 comments on commit 9f33d8d

Please sign in to comment.