use of org.apache.accumulo.core.constraints.VisibilityConstraint in project accumulo by apache.
the class VisibilityConstraintTest method setUp.
@Before
public void setUp() throws Exception {
vc = new VisibilityConstraint();
mutation = new Mutation("r");
ArrayByteSequence bs = new ArrayByteSequence("good".getBytes(UTF_8));
AuthorizationContainer ac = createNiceMock(AuthorizationContainer.class);
expect(ac.contains(bs)).andReturn(true);
replay(ac);
env = createMock(Environment.class);
expect(env.getAuthorizationsContainer()).andReturn(ac);
replay(env);
}
Aggregations