public class DirectConsoleOutput extends java.lang.Object implements TestcycleConsoleOutputReceiver
Modifier and Type | Field and Description |
---|---|
private java.io.PrintStream |
serr |
private java.io.PrintStream |
sout |
Constructor and Description |
---|
DirectConsoleOutput(java.io.PrintStream sout,
java.io.PrintStream serr) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
testSetCompleted(ReportEntry report) |
void |
testSetStarting(ReportEntry reportEntry) |
void |
writeTestOutput(byte[] buf,
int off,
int len,
boolean stdout)
Forwards process output from the running test-case into the reporting system
|
private final java.io.PrintStream sout
private final java.io.PrintStream serr
public DirectConsoleOutput(java.io.PrintStream sout, java.io.PrintStream serr)
public void writeTestOutput(byte[] buf, int off, int len, boolean stdout)
ConsoleOutputReceiver
writeTestOutput
in interface ConsoleOutputReceiver
buf
- the buffer to writeoff
- offsetlen
- lenstdout
- Indicates if this is stdoutpublic void testSetStarting(ReportEntry reportEntry)
testSetStarting
in interface TestcycleConsoleOutputReceiver
public void testSetCompleted(ReportEntry report)
testSetCompleted
in interface TestcycleConsoleOutputReceiver
public void close()
close
in interface TestcycleConsoleOutputReceiver