test/java/time/tck/java/time/format/TCKLocalizedFieldPrinter.java

Print this page

        

@@ -96,10 +96,10 @@
     public void test_localizedDayOfWeek(String pattern, String expected) {
         DateTimeFormatterBuilder b
                 = new DateTimeFormatterBuilder().appendPattern(pattern);
         LocalDate date = LocalDate.of(2012, 7, 20);
 
-        String result = b.toFormatter(locale).print(date);
+        String result = b.toFormatter(locale).format(date);
         assertEquals(result, expected, "Wrong output for pattern '" + pattern + "'.");
     }
 
 }