void () { mySimpleTest.setPrinter(myMockResettablePrinter); mySimpleTest.addStdOutput("one"); assertStdOutput(myMockResettablePrinter, "one"); mySimpleTest.addStdErr("two"); assertStdErr(myMockResettablePrinter, "two"); mySimpleTest.addStdOutput("one"); mySimpleTest.addStdOutput("one"); mySimpleTest.addStdErr("two"); mySimpleTest.addStdErr("two"); assertAllOutputs(myMockResettablePrinter, "oneone", "twotwo", ""); }