From: Andreas Beeker Date: Sun, 18 Nov 2018 00:23:49 +0000 (+0000) Subject: #62921 - Provide OOXMLLite alternative for Java 12+ X-Git-Tag: REL_4_0_1~10 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c7cf08b50a2caebfa9f8cb60494e01e228bf5088;p=poi.git #62921 - Provide OOXMLLite alternative for Java 12+ git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1846810 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/jenkins/create_jobs.groovy b/jenkins/create_jobs.groovy index 5638a03407..60795db960 100644 --- a/jenkins/create_jobs.groovy +++ b/jenkins/create_jobs.groovy @@ -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) } diff --git a/src/testcases/org/apache/poi/ss/usermodel/TestExcelStyleDateFormatter.java b/src/testcases/org/apache/poi/ss/usermodel/TestExcelStyleDateFormatter.java index 9d64f3a8a0..f055d4174b 100644 --- a/src/testcases/org/apache/poi/ss/usermodel/TestExcelStyleDateFormatter.java +++ b/src/testcases/org/apache/poi/ss/usermodel/TestExcelStyleDateFormatter.java @@ -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++; }