summaryrefslogtreecommitdiff
path: root/icu4j/main/tests
diff options
context:
space:
mode:
authorFredrik Roubert <roubert@google.com>2016-07-04 19:40:37 +0200
committerNikita Iashchenko <nikitai@google.com>2019-07-24 19:51:10 +0100
commitd37fac76abe27806e6e5557894b464f5326ebab0 (patch)
treea16c31658b0498ff2b1569503bb5e8cfd4e2fa19 /icu4j/main/tests
parenta884d5f25b79922d21385d025895f08df29423da (diff)
downloadicu-d37fac76abe27806e6e5557894b464f5326ebab0.tar.gz
Android patch: CLDR data: Add data for the XA/XB pseudo locales.
This CL adds pseudo locales used in some tests and excludes them from com.ibm.icu.dev.test.format.DateTimeGeneratorTest#testJjMapping because they are not real locales. https://android.googlesource.com/platform/external/icu/+/338b5d35fdb86a9c4cb0ed59a67416693a0fe1e4 Test: n/a Change-Id: I3b15004b8d1d764d67abe442000aeb2cbb969c97
Diffstat (limited to 'icu4j/main/tests')
-rw-r--r--icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/DateTimeGeneratorTest.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/DateTimeGeneratorTest.java b/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/DateTimeGeneratorTest.java
index e96df6882..057c6a562 100644
--- a/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/DateTimeGeneratorTest.java
+++ b/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/DateTimeGeneratorTest.java
@@ -1689,6 +1689,12 @@ public class DateTimeGeneratorTest extends TestFmwk {
ULocale[] locales = DateFormat.getAvailableULocales();
for (ULocale locale: locales) {
String localeID = locale.getName();
+ // BEGIN Android-added: Exclude pseudo locales since they are not present in CLDR data.
+ if (localeID.endsWith("_XA") || localeID.endsWith("_XB")) {
+ // skip pseudo-locales
+ continue;
+ }
+ // END Android-added: Exclude pseudo locales since they are not present in CLDR data.
DateTimePatternGenerator dtpg = DateTimePatternGenerator.getInstance(locale);
DateFormat dfmt = DateFormat.getTimeInstance(DateFormat.SHORT, locale);
String shortPattern = ((SimpleDateFormat)dfmt).toPattern();