< prev index next >

test/jdk/java/time/test/java/time/format/TestZoneTextPrinterParser.java

Print this page
rev 50971 : [mq]: 8206980

@@ -47,11 +47,11 @@
 import org.testng.annotations.DataProvider;
 import org.testng.annotations.Test;
 
 /*
  * @test
- * @bug 8081022 8151876 8166875 8189784
+ * @bug 8081022 8151876 8166875 8189784 8206980
  * @key randomness
  */
 
 /**
  * Test ZoneTextPrinterParser

@@ -160,10 +160,13 @@
             {"Asia/Shanghai",    "CDT",                   preferred_s, Locale.ENGLISH, TextStyle.SHORT},
             {"America/Juneau",   "AKST",                  none,        Locale.ENGLISH, TextStyle.SHORT},
             {"America/Juneau",   "AKDT",                  none,        Locale.ENGLISH, TextStyle.SHORT},
             {"Pacific/Honolulu", "HST",                   none,        Locale.ENGLISH, TextStyle.SHORT},
             {"America/Halifax",  "AST",                   none,        Locale.ENGLISH, TextStyle.SHORT},
+            {"Z",                "Z",                     none,      Locale.ENGLISH, TextStyle.SHORT},
+            {"Z",                "Z",                     none,      Locale.US,      TextStyle.SHORT},
+            {"Z",                "Z",                     none,      Locale.CANADA,  TextStyle.SHORT},
        };
     }
 
     @Test(dataProvider="preferredZones")
     public void test_ParseText(String expected, String text, Set<ZoneId> preferred, Locale locale, TextStyle style) {
< prev index next >