void (final MockPrinter printer, final String out, final String err, final String sys) { assertTrue(printer.hasPrinted()); assertEquals(out, printer.getStdOut()); assertEquals(err, printer.getStdErr()); assertEquals(sys, printer.getStdSys()); printer.resetIfNecessary(); }