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

Print this page




 105                                        "America/Coral_Harbour should be " +
 106                                        "\"Eastern, normaltid\"");
 107         tzLocale = locales2Test[8];
 108         if (!Coral_Harbour.getDisplayName(false, TimeZone.LONG, tzLocale).equals
 109            ("\u4e1c\u90e8\u6807\u51c6\u65f6\u95f4"))
 110             throw new RuntimeException("\n" + tzLocale + ": LONG, " +
 111                                        "non-daylight saving name for " +
 112                                        "America/Coral_Harbour should be " +
 113                                        "\"\u4e1c\u90e8\u6807\u51c6\u65f6\u95f4\"");
 114         tzLocale = locales2Test[9];
 115         if (!Coral_Harbour.getDisplayName(false, TimeZone.LONG, tzLocale).equals
 116            ("\u6771\u65b9\u6a19\u6e96\u6642\u9593"))
 117             throw new RuntimeException("\n" + tzLocale + ": LONG, " +
 118                                        "non-daylight saving name for " +
 119                                        "America/Coral_Harbour should be " +
 120                                        "\"\u6771\u65b9\u6a19\u6e96\u6642\u9593\"");
 121 
 122         TimeZone Currie = TimeZone.getTimeZone("Australia/Currie");
 123         tzLocale = locales2Test[0];
 124         if (!Currie.getDisplayName(false, TimeZone.LONG, tzLocale).equals
 125            ("Eastern Standard Time (New South Wales)"))
 126             throw new RuntimeException("\n" + tzLocale + ": LONG, " +
 127                                        "non-daylight saving name for " +
 128                                        "Australia/Currie should be " +
 129                                        "\"Eastern Standard Time " +
 130                                        "(New South Wales)\"");
 131         tzLocale = locales2Test[1];
 132         if (!Currie.getDisplayName(false, TimeZone.LONG, tzLocale).equals
 133            ("\u00D6stliche Normalzeit (New South Wales)"))
 134             throw new RuntimeException("\n" + tzLocale + ": LONG, " +
 135                                        "non-daylight saving name for " +
 136                                        "Australia/Currie should be " +
 137                                        "\"\u00D6stliche Normalzeit " +
 138                                        "(New South Wales)\"");
 139         tzLocale = locales2Test[2];
 140         if (!Currie.getDisplayName(false, TimeZone.LONG, tzLocale).equals
 141            ("Hora est\u00e1ndar Oriental (Nueva Gales del Sur)"))
 142             throw new RuntimeException("\n" + tzLocale + ": LONG, " +
 143                                        "non-daylight saving name for " +
 144                                        "Australia/Currie should be " +
 145                                        "\"Hora est\u00e1ndar Oriental " +
 146                                        "(Nueva Gales del Sur)\"");
 147         tzLocale = locales2Test[3];
 148         if (!Currie.getDisplayName(false, TimeZone.LONG, tzLocale).equals
 149            ("Heure normale de l'Est (Nouvelle-Galles du Sud)"))




 105                                        "America/Coral_Harbour should be " +
 106                                        "\"Eastern, normaltid\"");
 107         tzLocale = locales2Test[8];
 108         if (!Coral_Harbour.getDisplayName(false, TimeZone.LONG, tzLocale).equals
 109            ("\u4e1c\u90e8\u6807\u51c6\u65f6\u95f4"))
 110             throw new RuntimeException("\n" + tzLocale + ": LONG, " +
 111                                        "non-daylight saving name for " +
 112                                        "America/Coral_Harbour should be " +
 113                                        "\"\u4e1c\u90e8\u6807\u51c6\u65f6\u95f4\"");
 114         tzLocale = locales2Test[9];
 115         if (!Coral_Harbour.getDisplayName(false, TimeZone.LONG, tzLocale).equals
 116            ("\u6771\u65b9\u6a19\u6e96\u6642\u9593"))
 117             throw new RuntimeException("\n" + tzLocale + ": LONG, " +
 118                                        "non-daylight saving name for " +
 119                                        "America/Coral_Harbour should be " +
 120                                        "\"\u6771\u65b9\u6a19\u6e96\u6642\u9593\"");
 121 
 122         TimeZone Currie = TimeZone.getTimeZone("Australia/Currie");
 123         tzLocale = locales2Test[0];
 124         if (!Currie.getDisplayName(false, TimeZone.LONG, tzLocale).equals
 125            ("Australian Eastern Standard Time (New South Wales)"))
 126             throw new RuntimeException("\n" + tzLocale + ": LONG, " +
 127                                        "non-daylight saving name for " +
 128                                        "Australia/Currie should be " +
 129                                        "\"Australian Eastern Standard Time " +
 130                                        "(New South Wales)\"");
 131         tzLocale = locales2Test[1];
 132         if (!Currie.getDisplayName(false, TimeZone.LONG, tzLocale).equals
 133            ("\u00D6stliche Normalzeit (New South Wales)"))
 134             throw new RuntimeException("\n" + tzLocale + ": LONG, " +
 135                                        "non-daylight saving name for " +
 136                                        "Australia/Currie should be " +
 137                                        "\"\u00D6stliche Normalzeit " +
 138                                        "(New South Wales)\"");
 139         tzLocale = locales2Test[2];
 140         if (!Currie.getDisplayName(false, TimeZone.LONG, tzLocale).equals
 141            ("Hora est\u00e1ndar Oriental (Nueva Gales del Sur)"))
 142             throw new RuntimeException("\n" + tzLocale + ": LONG, " +
 143                                        "non-daylight saving name for " +
 144                                        "Australia/Currie should be " +
 145                                        "\"Hora est\u00e1ndar Oriental " +
 146                                        "(Nueva Gales del Sur)\"");
 147         tzLocale = locales2Test[3];
 148         if (!Currie.getDisplayName(false, TimeZone.LONG, tzLocale).equals
 149            ("Heure normale de l'Est (Nouvelle-Galles du Sud)"))