< prev index next >

test/jdk/java/util/PluggableLocale/CalendarDataProviderTest.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2012, 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. --- 1,7 ---- /* ! * Copyright (c) 2012, 2018, 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.
*** 18,37 **** * * 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. */ /* ! * */ ! import java.text.*; ! import java.util.*; ! import static java.util.Calendar.*; ! import sun.util.locale.provider.*; ! import sun.util.resources.*; ! import com.bar.CalendarDataProviderImpl; /** * Test case for CalendarDataProvider. * * Test strategy: --- 18,43 ---- * * 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 7058207 8000986 8062588 8210406 ! * @summary CalendarDataProvider tests ! * @library providersrc/foobarutils ! * providersrc/barprovider ! * @build com.foobar.Utils ! * com.bar.* ! * @run main/othervm -Djava.locale.providers=JRE,SPI CalendarDataProviderTest */ ! import java.util.Calendar; ! import java.util.Locale; ! ! import static java.util.Calendar.WEDNESDAY; /** * Test case for CalendarDataProvider. * * Test strategy:
*** 49,59 **** } void test() { Locale kids = new Locale("ja", "JP", "kids"); // test provider's supported locale Calendar kcal = Calendar.getInstance(kids); - Calendar jcal = Calendar.getInstance(Locale.JAPAN); // check the week parameters checkResult("firstDayOfWeek", kcal.getFirstDayOfWeek(), WEDNESDAY); checkResult("minimalDaysInFirstWeek", kcal.getMinimalDaysInFirstWeek(), 7); } --- 55,64 ----
< prev index next >