aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases/org/apache/poi/ss/usermodel
diff options
context:
space:
mode:
authorAndreas Beeker <kiwiwings@apache.org>2018-11-18 00:23:49 +0000
committerAndreas Beeker <kiwiwings@apache.org>2018-11-18 00:23:49 +0000
commitc7cf08b50a2caebfa9f8cb60494e01e228bf5088 (patch)
tree46a0ca9e11c8395797e44e381fbfba24026bfdc1 /src/testcases/org/apache/poi/ss/usermodel
parent42af181065e99775ed94698e8fa8d8ffea2ddade (diff)
downloadpoi-c7cf08b50a2caebfa9f8cb60494e01e228bf5088.tar.gz
poi-c7cf08b50a2caebfa9f8cb60494e01e228bf5088.zip
#62921 - Provide OOXMLLite alternative for Java 12+
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1846810 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache/poi/ss/usermodel')
-rw-r--r--src/testcases/org/apache/poi/ss/usermodel/TestExcelStyleDateFormatter.java4
1 files changed, 4 insertions, 0 deletions
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++;
}