< prev index next >
test/jdk/java/util/Calendar/JapaneseEraNameTest.java
Print this page
rev 50991 : imported patch 8207152
*** 21,31 ****
* questions.
*/
/*
* @test
! * @bug 8202088
* @summary Test the localized Japanese new era name (May 1st. 2019-)
* is retrieved no matter CLDR provider contains the name or not.
* @modules jdk.localedata
* @run testng/othervm JapaneseEraNameTest
* @run testng/othervm -Djava.locale.providers=CLDR JapaneseEraNameTest
--- 21,31 ----
* questions.
*/
/*
* @test
! * @bug 8202088 8207152
* @summary Test the localized Japanese new era name (May 1st. 2019-)
* is retrieved no matter CLDR provider contains the name or not.
* @modules jdk.localedata
* @run testng/othervm JapaneseEraNameTest
* @run testng/othervm -Djava.locale.providers=CLDR JapaneseEraNameTest
*** 49,59 ****
@DataProvider(name="names")
Object[][] names() {
return new Object[][] {
// type, locale, name
! { LONG, JAPAN, "\u65b0\u5143\u53f7" }, // NewEra
{ LONG, US, "NewEra" },
{ SHORT, JAPAN, "N" },
{ SHORT, US, "N" },
};
}
--- 49,59 ----
@DataProvider(name="names")
Object[][] names() {
return new Object[][] {
// type, locale, name
! { LONG, JAPAN, "\u5143\u53f7" }, // NewEra
{ LONG, US, "NewEra" },
{ SHORT, JAPAN, "N" },
{ SHORT, US, "N" },
};
}
< prev index next >