@Test public void printing_meta_incrementally() { printer.printMetaIncrement("a"); printer.printMetaIncrement("b"); printer.printMetaIncrement("c"); assertThat(output.toString(), is("abc")); }
@Override public void printMetaIncrement(String text) { beginOnNewLineUnlessAlreadyDoing(META_INCREMENT); printTo(out, text); }
PlainTextPrinter implements Printer { @Override public void printMetaIncrement(String text) { beginOnNewLineUnlessAlreadyDoing(META_INCREMENT); printTo(out, text); } }
PlainTextPrinter implements Printer { @Override public void printMetaIncrement(String text) { beginOnNewLineUnlessAlreadyDoing(META_INCREMENT); printTo(out, text); } PlainTextPrinter(Appendable out); }
PlainTextPrinter implements Printer { @Override public void printMetaIncrement(String text) { beginOnNewLineUnlessAlreadyDoing(META_INCREMENT); printTo(out, text); } PlainTextPrinter(Appendable out); @Override void printOut(String text); @Override void printErr(String text); @Override void printMetaIncrement(String text); @Override void printMetaLine(String line); }
PlainTextPrinter implements Printer { @Override public void printMetaIncrement(String text) { beginOnNewLineUnlessAlreadyDoing(META_INCREMENT); printTo(out, text); } PlainTextPrinter(Appendable out); @Override void printOut(String text); @Override void printErr(String text); @Override void printMetaIncrement(String text); @Override void printMetaLine(String line);  }