/* * Copyright (c) 2007, 2022, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions.
*/ /* * @test * @bug 4449637 8008577 * @summary Basic acceptance test for international J2RE. Verifies that the * most important locale data and character converters exist and are * minimally functional. * @modules jdk.localedata * jdk.charsets * @run main/othervm -Djava.locale.providers=JRE,SPI InternationalBAT
*/
if (!pass) {
System.out.println("\nSome tests failed.\n"
+ "If you installed the US-only J2RE for Windows, "
+ "failures are expected and OK.\n"
+ "If you installed the international J2RE, or any J2SDK, "
+ "or if this occurs on any platform other than Windows, "
+ "please file a bug report.\n"
+ "Unfortunately, this test cannot determine whether you "
+ "installed a US-only J2RE, an international J2RE, or "
+ "a J2SDK.\n"); thrownew RuntimeException();
}
}
// Date strings for May 10, 2001, for the required locales privatestatic String[] requiredLocaleDates = { "10 \u0645\u0627\u064A\u0648, 2001", "2001\u5E745\u670810\u65E5 \u661F\u671F\u56DB", "2001\u5E745\u670810\u65E5 \u661F\u671F\u56DB", "donderdag 10 mei 2001", "Thursday, 10 May 2001", "Thursday, May 10, 2001", "Thursday, 10 May 2001", "Thursday, May 10, 2001", "jeudi 10 mai 2001", "jeudi 10 mai 2001", "Donnerstag, 10. Mai 2001", "\u05D9\u05D5\u05DD \u05D7\u05DE\u05D9\u05E9\u05D9 10 \u05DE\u05D0\u05D9 2001", "\u0917\u0941\u0930\u0941\u0935\u093E\u0930, \u0967\u0966 \u092E\u0908, \u0968\u0966\u0966\u0967", "gioved\u00EC 10 maggio 2001", "2001\u5E745\u670810\u65E5", // ja_JP "2001\uB144 5\uC6D4 10\uC77C \uBAA9\uC694\uC77C", "Quinta-feira, 10 de Maio de 2001", "jueves 10 de mayo de 2001", "den 10 maj 2001", "\u0E27\u0E31\u0E19\u0E1E\u0E24\u0E2B\u0E31\u0E2A\u0E1A\u0E14\u0E35\u0E17\u0E35\u0E48 10 \u0E1E\u0E24\u0E29\u0E20\u0E32\u0E04\u0E21 \u0E1E.\u0E28. 2544",
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.