mirror of
https://github.com/apache/jclouds.git
synced 2025-02-26 04:27:13 +00:00
Skip test incompatible with Java 21
This commit is contained in:
parent
89e834a4c5
commit
ed0604a08e
@ -25,6 +25,7 @@ import java.lang.reflect.Method;
|
||||
import java.lang.reflect.ReflectPermission;
|
||||
|
||||
import org.easymock.IAnswer;
|
||||
import org.testng.SkipException;
|
||||
import org.testng.annotations.AfterClass;
|
||||
import org.testng.annotations.BeforeClass;
|
||||
import org.testng.annotations.Test;
|
||||
@ -70,7 +71,12 @@ public class Reflection2CoreJavaClassesTest {
|
||||
}
|
||||
});
|
||||
replay(mockSecurityManager);
|
||||
System.setSecurityManager(mockSecurityManager);
|
||||
try {
|
||||
System.setSecurityManager(mockSecurityManager);
|
||||
} catch (UnsupportedOperationException uoe) {
|
||||
throw new SkipException("Not compatible with Java 21", uoe);
|
||||
}
|
||||
|
||||
securityManagerOverridden = true;
|
||||
methods(Enum.class);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user