File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
server/src/test/java/org/elasticsearch/plugins Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change 1818import org .elasticsearch .env .Environment ;
1919import org .elasticsearch .env .TestEnvironment ;
2020import org .elasticsearch .index .IndexModule ;
21+ import org .elasticsearch .jdk .RuntimeVersionFeature ;
2122import org .elasticsearch .plugin .analysis .CharFilterFactory ;
2223import org .elasticsearch .plugins .scanners .PluginInfo ;
2324import org .elasticsearch .plugins .spi .BarPlugin ;
@@ -873,6 +874,7 @@ public Reader create(Reader reader) {
873874 }
874875
875876 public void testCanCreateAClassLoader () {
877+ assumeTrue ("security manager must be available" , RuntimeVersionFeature .isSecurityManagerAvailable ());
876878 assertEquals (
877879 "access denied (\" java.lang.RuntimePermission\" \" createClassLoader\" )" ,
878880 expectThrows (AccessControlException .class , () -> new Loader (this .getClass ().getClassLoader ())).getMessage ()
You can’t perform that action at this time.
0 commit comments