@Override public void onOutput(CharSequence output) { if (outputOwner == null) { throw new RuntimeException("Unable send output event from test executor. Please report this problem. Destination: " + dest + ", event: " + output.toString()); } processor.output(outputOwner, new DefaultTestOutputEvent(dest, output.toString())); }
@Override public synchronized void testFailed(int status, String testId, String testName, String trace, String expected, String actual) { String message = testName + " failed"; if (expected != null || actual != null) { message += " (expected=" + expected + ", actual=" + actual + ")"; } this.resultProcessor.output(this.currentTestMethod.getId(), new DefaultTestOutputEvent(TestOutputEvent.Destination.StdOut, message)); this.resultProcessor.failure(this.currentTestMethod.getId(), new EclipseTestFailure(message, trace)); }