use of java.security.AllPermission in project lucene-solr by apache.
the class TestRunWithRestrictedPermissions method testCompletelyForbidden2.
public void testCompletelyForbidden2() throws Exception {
try {
runWithRestrictedPermissions(this::doSomeCompletelyForbiddenStuff, new AllPermission());
fail("this should not pass (not even with AllPermission)");
} catch (SecurityException se) {
// pass
}
}
Aggregations