]> source.dussan.org Git - poi.git/commitdiff
#62921 - Provide OOXMLLite alternative for Java 12+
authorAndreas Beeker <kiwiwings@apache.org>
Sun, 18 Nov 2018 00:23:49 +0000 (00:23 +0000)
committerAndreas Beeker <kiwiwings@apache.org>
Sun, 18 Nov 2018 00:23:49 +0000 (00:23 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1846810 13f79535-47bb-0310-9956-ffa450edef68

jenkins/create_jobs.groovy
src/testcases/org/apache/poi/ss/usermodel/TestExcelStyleDateFormatter.java

index 5638a03407a373d3751e4e3b69a37b4c860f0b51..60795db960e3053beadde14ce273f4b8294e9a4e 100644 (file)
@@ -377,7 +377,7 @@ poijobs.each { poijob ->
                     }
                 } else if (poijob.noScratchpad) {
                     ant {
-                        targets(['clean', 'compile-all'] + (poijob.properties ?: []))
+                        targets(['clean', 'compile'] + (poijob.properties ?: []))
                         prop('coverage.enabled', true)
                         antInstallation(antRT)
                     }
index 9d64f3a8a09cc56f7b6501518edf4f5e6d590c71..f055d4174b940c1f9d7632e14d46097ed6154fc9 100644 (file)
@@ -18,6 +18,8 @@
 package org.apache.poi.ss.usermodel;
 
 import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertTrue;
 
 import java.text.DateFormatSymbols;
 import java.text.FieldPosition;
@@ -75,6 +77,8 @@ public class TestExcelStyleDateFormatter {
 
                 int actIdx = (Locale.CHINESE.equals(locale) && jreVersion >= 12) ? 1 : 0;
 
+                assertNotNull(msg, result);
+                assertTrue(msg, result.length() > actIdx);
                 assertEquals(msg, expected.charAt(month), result.charAt(actIdx));
                 month++;
             }