use of org.apache.storm.security.auth.ReqContext in project storm by apache.
the class DRPCSimpleACLAuthorizerTest method makeMockContext.
private static ReqContext makeMockContext(String user) {
ReqContext mockContext = Mockito.mock(ReqContext.class);
Mockito.when(mockContext.principal()).thenReturn(new SingleUserPrincipal(user));
return mockContext;
}
Aggregations