// success.
}
}
public void testSetAllPolicies() throws RepositoryException, NotExecutableException {
AccessControlPolicyIterator it = acMgr.getApplicablePolicies(path);
if (!it.hasNext()) {
throw new NotExecutableException();
}
while (it.hasNext()) {
acMgr.setPolicy(path, it.nextAccessControlPolicy());
}
// all policies have been set -> no additional applicable policies.
it = acMgr.getApplicablePolicies(path);
assertFalse("After having set all applicable policies AccessControlManager.getApplicablePolicies should return an empty iterator.",
it.hasNext());
assertEquals("After having set all applicable policies AccessControlManager.getApplicablePolicies should return an empty iterator.",
0, it.getSize());
}