void () { mySimpleTest.setStarted(); mySimpleTest.setTestComparisonFailed("a", "stacktrace", "actual1", "expected1"); mySimpleTest.setTestComparisonFailed("b", "stacktrace", "actual2", "expected2"); mySimpleTest.setTestFailed("c", "stacktrace", false); mySimpleTest.setFinished(); final MockPrinter printer = new MockPrinter(); printer.setShowHyperLink(true); mySimpleTest.printOn(printer); assertEquals("", printer.getStdOut()); assertEquals(""" a Expected :expected1 Actual :actual1 <Click to see difference> stacktrace b Expected :expected2 Actual :actual2 <Click to see difference> stacktrace c stacktrace """, printer.getAllOut()); }