19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
20 * or visit www.oracle.com if you need additional information or have any |
20 * or visit www.oracle.com if you need additional information or have any |
21 * questions. |
21 * questions. |
22 */ |
22 */ |
23 |
23 |
|
24 /* |
|
25 * @test |
|
26 * @bug 8000983 8008577 |
|
27 * @summary Unit test for narrow names support. This test is locale data-dependent |
|
28 * and assumes that both JRE and CLDR have the same narrow names. |
|
29 * @modules jdk.localedata |
|
30 * @comment Locale providers: JRE,SPI |
|
31 * @run main/othervm -Djava.locale.providers=JRE,SPI NarrowNamesTest JRE,SPI |
|
32 * @comment Locale providers: CLDR |
|
33 * @run main/othervm -Djava.locale.providers=CLDR NarrowNamesTest CLDR |
|
34 */ |
|
35 |
24 import java.time.LocalDateTime; |
36 import java.time.LocalDateTime; |
25 import java.util.*; |
37 import java.util.Calendar; |
|
38 import java.util.Comparator; |
|
39 import java.util.Locale; |
|
40 import java.util.Map; |
|
41 import java.util.TreeMap; |
26 import static java.util.GregorianCalendar.*; |
42 import static java.util.GregorianCalendar.*; |
27 |
43 |
28 public class NarrowNamesTest { |
44 public class NarrowNamesTest { |
29 private static final Locale US = Locale.US; |
45 private static final Locale US = Locale.US; |
30 private static final Locale JAJPJP = new Locale("ja", "JP", "JP"); |
46 private static final Locale JAJPJP = new Locale("ja", "JP", "JP"); |