void () { startTestWithPrinter("my_test"); myEventsProcessor.onTestOutput(new TestOutputEvent("my_test", "stdout1 ", true)); myEventsProcessor.onTestOutput(new TestOutputEvent("my_test", "stderr1 ", false)); myEventsProcessor.onTestOutput(new TestOutputEvent("my_test", "stdout2", true)); myEventsProcessor.onTestOutput(new TestOutputEvent("my_test", "stderr2", false)); assertAllOutputs(myMockResettablePrinter, "stdout1 stdout2", "stderr1 stderr2", ""); }