Java 类org.gradle.api.internal.tasks.testing.DefaultTestOutputEvent 实例源码

项目:Reer    文件:TestOutputRedirector.java   
@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()));
}
项目:ide-plugins    文件:EclipseTestListener.java   
@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));
}