test/java/time/test/java/time/format/TestCharLiteralPrinter.java

Print this page

        

*** 72,93 **** public class TestCharLiteralPrinter extends AbstractTestPrinterParser { //----------------------------------------------------------------------- public void test_print_emptyCalendrical() throws Exception { buf.append("EXISTING"); ! getFormatter('a').printTo(EMPTY_DTA, buf); assertEquals(buf.toString(), "EXISTINGa"); } public void test_print_dateTime() throws Exception { buf.append("EXISTING"); ! getFormatter('a').printTo(dta, buf); assertEquals(buf.toString(), "EXISTINGa"); } public void test_print_emptyAppendable() throws Exception { ! getFormatter('a').printTo(dta, buf); assertEquals(buf.toString(), "a"); } //----------------------------------------------------------------------- public void test_toString() throws Exception { --- 72,93 ---- public class TestCharLiteralPrinter extends AbstractTestPrinterParser { //----------------------------------------------------------------------- public void test_print_emptyCalendrical() throws Exception { buf.append("EXISTING"); ! getFormatter('a').formatTo(EMPTY_DTA, buf); assertEquals(buf.toString(), "EXISTINGa"); } public void test_print_dateTime() throws Exception { buf.append("EXISTING"); ! getFormatter('a').formatTo(dta, buf); assertEquals(buf.toString(), "EXISTINGa"); } public void test_print_emptyAppendable() throws Exception { ! getFormatter('a').formatTo(dta, buf); assertEquals(buf.toString(), "a"); } //----------------------------------------------------------------------- public void test_toString() throws Exception {