aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases/org
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2014-03-08 16:46:59 +0000
committerDominik Stadler <centic@apache.org>2014-03-08 16:46:59 +0000
commitb9cd5ca769009bb3dad5f18dd85ca0b71d7c4d7e (patch)
tree109ba84114313d8724c1a30437d409271fb4a154 /src/testcases/org
parent71b2a6369989a41efc7258b87209474dd31fc6fc (diff)
downloadpoi-b9cd5ca769009bb3dad5f18dd85ca0b71d7c4d7e.tar.gz
poi-b9cd5ca769009bb3dad5f18dd85ca0b71d7c4d7e.zip
Adjust for JDK 8 where an empty locale is added to the array returned by DateFormat.getAvailableLocales()
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1575563 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org')
-rw-r--r--src/testcases/org/apache/poi/ss/util/TestDateFormatConverter.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/testcases/org/apache/poi/ss/util/TestDateFormatConverter.java b/src/testcases/org/apache/poi/ss/util/TestDateFormatConverter.java
index e4b7c38927..95042e50f3 100644
--- a/src/testcases/org/apache/poi/ss/util/TestDateFormatConverter.java
+++ b/src/testcases/org/apache/poi/ss/util/TestDateFormatConverter.java
@@ -137,5 +137,11 @@ public final class TestDateFormatConverter extends TestCase {
outputLocaleDataFormats(date, false, true, DateFormat.LONG, "Long" );
outputLocaleDataFormats(date, false, true, DateFormat.FULL, "Full" );
}
+
+ public void testJDK8EmptyLocale() {
+ // JDK 8 seems to add an empty locale-string to the list returned via DateFormat.getAvailableLocales()
+ // therefore we now cater for this special locale as well
+ DateFormatConverter.getPrefixForLocale(new Locale(""));
+ }
}