test/java/time/test/java/time/format/TestStringLiteralPrinter.java

Print this page

        

*** 72,96 **** public class TestStringLiteralPrinter extends AbstractTestPrinterParser { //----------------------------------------------------------------------- public void test_print_emptyCalendrical() throws Exception { buf.append("EXISTING"); ! getFormatter("hello").printTo(EMPTY_DTA, buf); assertEquals(buf.toString(), "EXISTINGhello"); } public void test_print_dateTime() throws Exception { buf.append("EXISTING"); ! getFormatter("hello").printTo(dta, buf); assertEquals(buf.toString(), "EXISTINGhello"); } public void test_print_emptyAppendable() throws Exception { ! getFormatter("hello").printTo(dta, buf); assertEquals(buf.toString(), "hello"); } //----------------------------------------------------------------------- public void test_toString() throws Exception { --- 72,96 ---- public class TestStringLiteralPrinter extends AbstractTestPrinterParser { //----------------------------------------------------------------------- public void test_print_emptyCalendrical() throws Exception { buf.append("EXISTING"); ! getFormatter("hello").formatTo(EMPTY_DTA, buf); assertEquals(buf.toString(), "EXISTINGhello"); } public void test_print_dateTime() throws Exception { buf.append("EXISTING"); ! getFormatter("hello").formatTo(dta, buf); assertEquals(buf.toString(), "EXISTINGhello"); } public void test_print_emptyAppendable() throws Exception { ! getFormatter("hello").formatTo(dta, buf); assertEquals(buf.toString(), "hello"); } //----------------------------------------------------------------------- public void test_toString() throws Exception {