test/sun/util/resources/TimeZone/Bug6317929.java

Print this page




   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  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
  21  * questions.
  22  */
  23 
  24 /*
  25  *@test
  26  *@bug 6317929 6409419
  27  *@summary Test case for tzdata2005m support for 9 locales

  28  */
  29 
  30 import java.util.Locale;
  31 import java.util.TimeZone;
  32 
  33 public class Bug6317929 {
  34     static Locale[] locales2Test = new Locale[] {
  35         new Locale("en"),
  36         new Locale("de"),
  37         new Locale("es"),
  38         new Locale("fr"),
  39         new Locale("it"),
  40         new Locale("ja"),
  41         new Locale("ko"),
  42         new Locale("sv"),
  43         new Locale("zh","CN"),
  44         new Locale("zh","TW")
  45     };
  46 
  47     public static void main(String[] args) {




   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  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
  21  * questions.
  22  */
  23 
  24 /*
  25  *@test
  26  *@bug 6317929 6409419 8008577
  27  *@summary Test case for tzdata2005m support for 9 locales
  28  *@run main/othervm -Djava.locale.providers=JRE,SPI Bug6317929
  29  */
  30 
  31 import java.util.Locale;
  32 import java.util.TimeZone;
  33 
  34 public class Bug6317929 {
  35     static Locale[] locales2Test = new Locale[] {
  36         new Locale("en"),
  37         new Locale("de"),
  38         new Locale("es"),
  39         new Locale("fr"),
  40         new Locale("it"),
  41         new Locale("ja"),
  42         new Locale("ko"),
  43         new Locale("sv"),
  44         new Locale("zh","CN"),
  45         new Locale("zh","TW")
  46     };
  47 
  48     public static void main(String[] args) {