--- old/test/java/time/tck/java/time/format/TCKDateTimeTextPrinting.java 2013-02-08 10:49:11.000000000 -0800 +++ new/test/java/time/tck/java/time/format/TCKDateTimeTextPrinting.java 2013-02-08 10:49:11.000000000 -0800 @@ -136,21 +136,21 @@ } @Test(dataProvider="printText", groups={"tck"}) - public void test_appendText2arg_print(TemporalField field, TextStyle style, int value, String expected) throws Exception { + public void test_appendText2arg_format(TemporalField field, TextStyle style, int value, String expected) throws Exception { DateTimeFormatter f = builder.appendText(field, style).toFormatter(Locale.ENGLISH); LocalDateTime dt = LocalDateTime.of(2010, 1, 1, 0, 0); dt = dt.with(field, value); - String text = f.print(dt); + String text = f.format(dt); assertEquals(text, expected); } @Test(dataProvider="printText", groups={"tck"}) - public void test_appendText1arg_print(TemporalField field, TextStyle style, int value, String expected) throws Exception { + public void test_appendText1arg_format(TemporalField field, TextStyle style, int value, String expected) throws Exception { if (style == TextStyle.FULL) { DateTimeFormatter f = builder.appendText(field).toFormatter(Locale.ENGLISH); LocalDateTime dt = LocalDateTime.of(2010, 1, 1, 0, 0); dt = dt.with(field, value); - String text = f.print(dt); + String text = f.format(dt); assertEquals(text, expected); } } @@ -160,7 +160,7 @@ public void test_print_appendText2arg_french_long() throws Exception { DateTimeFormatter f = builder.appendText(MONTH_OF_YEAR, TextStyle.FULL).toFormatter(Locale.FRENCH); LocalDateTime dt = LocalDateTime.of(2010, 1, 1, 0, 0); - String text = f.print(dt); + String text = f.format(dt); assertEquals(text, "janvier"); } @@ -168,7 +168,7 @@ public void test_print_appendText2arg_french_short() throws Exception { DateTimeFormatter f = builder.appendText(MONTH_OF_YEAR, TextStyle.SHORT).toFormatter(Locale.FRENCH); LocalDateTime dt = LocalDateTime.of(2010, 1, 1, 0, 0); - String text = f.print(dt); + String text = f.format(dt); assertEquals(text, "janv."); } @@ -192,7 +192,7 @@ DateTimeFormatter f = builder.toFormatter(); LocalDateTime dt = LocalDateTime.of(2010, 1, 1, 0, 0); for (Month month : Month.values()) { - assertEquals(f.print(dt.with(month)), map.get((long) month.getValue())); + assertEquals(f.format(dt.with(month)), map.get((long) month.getValue())); } } @@ -205,9 +205,9 @@ builder.appendText(DAY_OF_MONTH, map); DateTimeFormatter f = builder.toFormatter(); LocalDateTime dt = LocalDateTime.of(2010, 1, 1, 0, 0); - assertEquals(f.print(dt.withDayOfMonth(1)), "1st"); - assertEquals(f.print(dt.withDayOfMonth(2)), "2nd"); - assertEquals(f.print(dt.withDayOfMonth(3)), "3rd"); + assertEquals(f.format(dt.withDayOfMonth(1)), "1st"); + assertEquals(f.format(dt.withDayOfMonth(2)), "2nd"); + assertEquals(f.format(dt.withDayOfMonth(3)), "3rd"); } @Test(groups={"tck"}) @@ -217,7 +217,7 @@ builder.appendText(MONTH_OF_YEAR, map); DateTimeFormatter f = builder.toFormatter(); LocalDateTime dt = LocalDateTime.of(2010, 2, 1, 0, 0); - assertEquals(f.print(dt), "2"); + assertEquals(f.format(dt), "2"); } }