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

Print this page

        

*** 96,105 **** 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); assertEquals(result, expected, "Wrong output for pattern '" + pattern + "'."); } } --- 96,105 ---- 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).format(date); assertEquals(result, expected, "Wrong output for pattern '" + pattern + "'."); } }