]> source.dussan.org Git - poi.git/commitdiff
disable test on java 19
authorPJ Fanning <fanningpj@apache.org>
Wed, 27 Jul 2022 20:07:49 +0000 (20:07 +0000)
committerPJ Fanning <fanningpj@apache.org>
Wed, 27 Jul 2022 20:07:49 +0000 (20:07 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903067 13f79535-47bb-0310-9956-ffa450edef68

poi/src/test/java/org/apache/poi/poifs/dev/TestPOIFSDump.java

index 25702c117dece6fbac4b25eb5d4aabe18502a4e8..3a8455e3e0e147e593108f618ace07974835af3a 100644 (file)
@@ -168,7 +168,8 @@ public class TestPOIFSDump {
     @Test
     @SuppressForbidden("tests java.security features deprecated in java 17 - no other option though")
     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 sm = System.getSecurityManager();