ConsoleAppender { public void println() { try { out.append(NEWLINE); } catch (IOException e) { throw new RuntimeException("Error printing help", e); } } ConsoleAppender(Appendable out, int lineWidth); protected  ConsoleAppender(ConsoleAppender proto); ConsoleAppender withOffset(int offset); ConsoleAppender withOffset(String offset); void println(); void println(String... phrases); void println(Collection<String> phrases); void foldPrintln(String... phrases); void foldPrintln(Collection<String> phrases);  }
@Test public void testPrintln() { StringBuilder out = new StringBuilder(); ConsoleAppender appender = new ConsoleAppender(out, 20); appender.println("a", "b", "cd"); assertEquals("abcd" + ConsoleAppender.NEWLINE, out.toString()); }
@Test public void testPrintln_Long() { StringBuilder out = new StringBuilder(); ConsoleAppender appender = new ConsoleAppender(out, 20); appender.println("012345678", "012345678", "01234567890"); assertEquals("01234567801234567801234567890" + ConsoleAppender.NEWLINE, out.toString()); }