mirror of
https://github.com/apache/poi.git
synced 2026-02-27 20:40:08 +08:00
disable test on java 19
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903067 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4745a2a372
commit
56fe91998a
@ -168,7 +168,8 @@ public class TestPOIFSDump {
|
|||||||
@Test
|
@Test
|
||||||
@SuppressForbidden("tests java.security features deprecated in java 17 - no other option though")
|
@SuppressForbidden("tests java.security features deprecated in java 17 - no other option though")
|
||||||
void testMainNoArgs() {
|
void testMainNoArgs() {
|
||||||
Assumptions.assumeFalse(System.getProperty("java.version").startsWith("18"),
|
final String javaVersion = System.getProperty("java.version");
|
||||||
|
Assumptions.assumeFalse(javaVersion.startsWith("18") || javaVersion.startsWith("19") || javaVersion.startsWith("2"),
|
||||||
"SecurityManager does not work any more since JDK 18");
|
"SecurityManager does not work any more since JDK 18");
|
||||||
|
|
||||||
SecurityManager sm = System.getSecurityManager();
|
SecurityManager sm = System.getSecurityManager();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user