jdk/test/sun/util/resources/TimeZone/Bug6317929.java
author yhuang
Thu, 11 Feb 2010 20:59:09 -0800
changeset 5305 02eb2f3cac63
parent 2 90ce3da70b43
child 5506 202f599c92aa
permissions -rw-r--r--
6776102: sun/util/resources/TimeZone/Bug6317929.java test failed against 6u12b01 and passed against 6u11b03 Reviewed-by: yhuang, peytoia
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
 * Copyright (c) 2007 Sun Microsystems, Inc.  All Rights Reserved.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 * CA 95054 USA or visit www.sun.com if you need additional information or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
 * have any questions.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
 *@test
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
 *@bug 6317929 6409419
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
 *@summary Test case for tzdata2005m support for 9 locales
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
import java.util.Locale;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
import java.util.TimeZone;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
public class Bug6317929 {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
    static Locale[] locales2Test = new Locale[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
        new Locale("en"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
        new Locale("de"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
        new Locale("es"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
        new Locale("fr"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
        new Locale("it"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
        new Locale("ja"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
        new Locale("ko"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
        new Locale("sv"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
        new Locale("zh","CN"),
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
        new Locale("zh","TW")
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
    };
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
    public static void main(String[] args) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
        Locale tzLocale;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
        TimeZone Coral_Harbour = TimeZone.getTimeZone("America/Coral_Harbour");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
        tzLocale = locales2Test[0];
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
        if (!Coral_Harbour.getDisplayName(false, TimeZone.LONG, tzLocale).equals
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
           ("Eastern Standard Time"))
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
            throw new RuntimeException("\n" + tzLocale + ": LONG, " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
                                       "non-daylight saving name for " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
                                       "America/Coral_Harbour should be " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
                                       "\"Eastern Standard Time\"");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
        tzLocale = locales2Test[1];
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
        if (!Coral_Harbour.getDisplayName(false, TimeZone.LONG, tzLocale).equals
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
           ("\u00d6stliche Normalzeit"))
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
            throw new RuntimeException("\n" + tzLocale + ": LONG, " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
                                       "non-daylight saving name for " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
                                       "America/Coral_Harbour should be " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
                                       "\"\u00d6stliche Normalzeit\"");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
        tzLocale = locales2Test[2];
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
        if (!Coral_Harbour.getDisplayName(false, TimeZone.LONG, tzLocale).equals
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
           ("Hora est\u00e1ndar Oriental"))
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
            throw new RuntimeException("\n" + tzLocale + ": LONG, " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
                                       "non-daylight saving name for " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
                                       "America/Coral_Harbour should be " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
                                       "\"Hora est\u00e1ndar Oriental\"");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
        tzLocale = locales2Test[3];
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
        if (!Coral_Harbour.getDisplayName(false, TimeZone.LONG, tzLocale).equals
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
           ("Heure normale de l'Est"))
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
            throw new RuntimeException("\n" + tzLocale + ": LONG, " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
                                       "non-daylight saving name for " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
                                       "America/Coral_Harbour should be " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
                                       "\"Heure normale de l'Est\"");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
        tzLocale = locales2Test[4];
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
        if (!Coral_Harbour.getDisplayName(false, TimeZone.LONG, tzLocale).equals
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
           ("Ora solare USA orientale"))
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
            throw new RuntimeException("\n" + tzLocale + ": LONG, " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
                                       "non-daylight saving name for " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
                                       "America/Coral_Harbour should be " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
                                       "\"Ora solare USA orientale\"");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
        tzLocale = locales2Test[5];
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
        if (!Coral_Harbour.getDisplayName(false, TimeZone.LONG, tzLocale).equals
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
           ("\u6771\u90e8\u6a19\u6e96\u6642"))
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
            throw new RuntimeException("\n" + tzLocale + ": LONG, " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
                                       "non-daylight saving name for " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
                                       "America/Coral_Harbour should be " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
                                       "\"\u6771\u90e8\u6a19\u6e96\u6642\"");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
        tzLocale = locales2Test[6];
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
        if (!Coral_Harbour.getDisplayName(false, TimeZone.LONG, tzLocale).equals
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
           ("\ub3d9\ubd80 \ud45c\uc900\uc2dc"))
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
            throw new RuntimeException("\n" + tzLocale + ": LONG, " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
                                       "non-daylight saving name for " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
                                       "America/Coral_Harbour should be " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
                                       "\"\ub3d9\ubd80 \ud45c\uc900\uc2dc\"");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
        tzLocale = locales2Test[7];
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
        if (!Coral_Harbour.getDisplayName(false, TimeZone.LONG, tzLocale).equals
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
           ("Eastern, normaltid"))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
            throw new RuntimeException("\n" + tzLocale + ": LONG, " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
                                       "non-daylight saving name for " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
                                       "America/Coral_Harbour should be " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
                                       "\"Eastern, normaltid\"");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
        tzLocale = locales2Test[8];
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
        if (!Coral_Harbour.getDisplayName(false, TimeZone.LONG, tzLocale).equals
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
           ("\u4e1c\u90e8\u6807\u51c6\u65f6\u95f4"))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
            throw new RuntimeException("\n" + tzLocale + ": LONG, " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
                                       "non-daylight saving name for " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
                                       "America/Coral_Harbour should be " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
                                       "\"\u4e1c\u90e8\u6807\u51c6\u65f6\u95f4\"");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
        tzLocale = locales2Test[9];
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
        if (!Coral_Harbour.getDisplayName(false, TimeZone.LONG, tzLocale).equals
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
           ("\u6771\u65b9\u6a19\u6e96\u6642\u9593"))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
            throw new RuntimeException("\n" + tzLocale + ": LONG, " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
                                       "non-daylight saving name for " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
                                       "America/Coral_Harbour should be " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
                                       "\"\u6771\u65b9\u6a19\u6e96\u6642\u9593\"");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
        TimeZone Currie = TimeZone.getTimeZone("Australia/Currie");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
        tzLocale = locales2Test[0];
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
        if (!Currie.getDisplayName(false, TimeZone.LONG, tzLocale).equals
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
           ("Eastern Standard Time (New South Wales)"))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
            throw new RuntimeException("\n" + tzLocale + ": LONG, " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
                                       "non-daylight saving name for " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
                                       "Australia/Currie should be " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
                                       "\"Eastern Standard Time " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
                                       "(New South Wales)\"");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
        tzLocale = locales2Test[1];
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
        if (!Currie.getDisplayName(false, TimeZone.LONG, tzLocale).equals
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
           ("\u00d6stliche Normalzeit (New South Wales)"))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
            throw new RuntimeException("\n" + tzLocale + ": LONG, " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
                                       "non-daylight saving name for " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
                                       "Australia/Currie should be " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
                                       "\"\u00d6stliche Normalzeit " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
                                       "(New South Wales)\"");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
        tzLocale = locales2Test[2];
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
        if (!Currie.getDisplayName(false, TimeZone.LONG, tzLocale).equals
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
           ("Hora est\u00e1ndar Oriental (Nueva Gales del Sur)"))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
            throw new RuntimeException("\n" + tzLocale + ": LONG, " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
                                       "non-daylight saving name for " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
                                       "Australia/Currie should be " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
                                       "\"Hora est\u00e1ndar Oriental " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
                                       "(Nueva Gales del Sur)\"");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
        tzLocale = locales2Test[3];
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
        if (!Currie.getDisplayName(false, TimeZone.LONG, tzLocale).equals
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
           ("Heure normale de l'Est (Nouvelle-Galles du Sud)"))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
            throw new RuntimeException("\n" + tzLocale + ": LONG, " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
                                       "non-daylight saving name for " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
                                       "Australia/Currie should be " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
                                       "\"Heure normale de l'Est " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
                                       "(Nouvelle-Galles du Sud)\"");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
        tzLocale = locales2Test[4];
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
        if (!Currie.getDisplayName(false, TimeZone.LONG, tzLocale).equals
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
           ("Ora solare dell'Australia orientale (Nuovo Galles del Sud)"))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
            throw new RuntimeException("\n" + tzLocale + ": LONG, " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
                                       "non-daylight saving name for " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
                                       "Australia/Currie should be " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
                                       "\"Ora solare dell'Australia orientale " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
                                       "(Nuovo Galles del Sud)\"");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
        tzLocale = locales2Test[5];
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
        if (!Currie.getDisplayName(false, TimeZone.LONG, tzLocale).equals
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
           ("\u6771\u90e8\u6a19\u6e96\u6642 " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
            "(\u30cb\u30e5\u30fc\u30b5\u30a6\u30b9\u30a6\u30a7\u30fc\u30eb\u30ba)"))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
            throw new RuntimeException("\n" + tzLocale + ": LONG, " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
                                       "non-daylight saving name for " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
                                       "Australia/Currie should be " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
                                       "\"\u6771\u90e8\u6a19\u6e96\u6642 " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
                                       "(\u30cb\u30e5\u30fc\u30b5\u30a6\u30b9" +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
                                       "\u30a6\u30a7\u30fc\u30eb\u30ba)\"");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
        tzLocale = locales2Test[6];
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
        if (!Currie.getDisplayName(false, TimeZone.LONG, tzLocale).equals
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
           ("\ub3d9\ubd80 \ud45c\uc900\uc2dc(\ub274 \uc0ac\uc6b0\uc2a4 \uc6e8\uc77c\uc988)"))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
            throw new RuntimeException("\n" + tzLocale + ": LONG, " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
                                       "non-daylight saving name for " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
                                       "Australia/Currie should be " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
                                       "\"\ub3d9\ubd80 \ud45c\uc900\uc2dc" +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
                                       "(\ub274 \uc0ac\uc6b0\uc2a4 \uc6e8\uc77c\uc988)\"");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
        tzLocale = locales2Test[7];
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
        if (!Currie.getDisplayName(false, TimeZone.LONG, tzLocale).equals
5305
02eb2f3cac63 6776102: sun/util/resources/TimeZone/Bug6317929.java test failed against 6u12b01 and passed against 6u11b03
yhuang
parents: 2
diff changeset
   183
           ("Eastern, normaltid (Nya Sydwales)"))
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
            throw new RuntimeException("\n" + tzLocale + ": LONG, " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
                                       "non-daylight saving name for " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
                                       "Australia/Currie should be " +
5305
02eb2f3cac63 6776102: sun/util/resources/TimeZone/Bug6317929.java test failed against 6u12b01 and passed against 6u11b03
yhuang
parents: 2
diff changeset
   187
                                       "\"Eastern, normaltid " +
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
                                       "(Nya Sydwales)\"");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
        tzLocale = locales2Test[8];
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
        if (!Currie.getDisplayName(false, TimeZone.LONG, tzLocale).equals
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
           ("\u4e1c\u90e8\u6807\u51c6\u65f6\u95f4\uff08\u65b0\u5357\u5a01\u5c14\u65af\uff09"))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
            throw new RuntimeException("\n" + tzLocale + ": LONG, " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
                                       "non-daylight saving name for " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
                                       "Australia/Currie should be " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
                                       "\"\u4e1c\u90e8\u6807\u51c6\u65f6\u95f4 " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
                                       "\uff08\u65b0\u5357\u5a01\u5c14\u65af\uff09\"");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
        tzLocale = locales2Test[9];
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
        if (!Currie.getDisplayName(false, TimeZone.LONG, tzLocale).equals
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
           ("\u6771\u65b9\u6a19\u6e96\u6642\u9593 (\u65b0\u5357\u5a01\u723e\u65af)"))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
            throw new RuntimeException("\n" + tzLocale + ": LONG, " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
                                       "non-daylight saving name for " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
                                       "Australia/Currie should be " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
                                       "\"\u6771\u65b9\u6a19\u6e96\u6642\u9593 " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
                                       "(\u65b0\u5357\u5a01\u723e\u65af)\"");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
   }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
}