@Test public void prints_stdout() { printer.printOut("foo"); printer.printOut("bar"); assertThat(output.toString(), is("foobar")); }
@Override public void printOut(String text) { beginOnNewLineUnlessAlreadyDoing(STDOUT); printTo(out, text); }
PlainTextPrinter implements Printer { @Override public void printOut(String text) { beginOnNewLineUnlessAlreadyDoing(STDOUT); printTo(out, text); } }
PlainTextPrinter implements Printer { @Override public void printOut(String text) { beginOnNewLineUnlessAlreadyDoing(STDOUT); printTo(out, text); } PlainTextPrinter(Appendable out); }
PlainTextPrinter implements Printer { @Override public void printOut(String text) { beginOnNewLineUnlessAlreadyDoing(STDOUT); 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 printOut(String text) { beginOnNewLineUnlessAlreadyDoing(STDOUT); 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);  }