processor.started(test, event);
if (suite != null) {
return;
}
suite = test.getId();
outputRedirector.redirectStandardOutputTo(new StandardOutputListener() {
public void onOutput(CharSequence output) {
processor.output(suite, new TestOutputEvent(TestOutputEvent.Destination.StdOut, output.toString()));
}
});
outputRedirector.redirectStandardErrorTo(new StandardOutputListener() {
public void onOutput(CharSequence output) {
processor.output(suite, new TestOutputEvent(TestOutputEvent.Destination.StdErr, output.toString()));
}
});
outputRedirector.start();