Class DirectConsoleOutput
- java.lang.Object
-
- org.apache.maven.plugin.surefire.report.DirectConsoleOutput
-
- All Implemented Interfaces:
TestcycleConsoleOutputReceiver
,ConsoleOutputReceiver
public class DirectConsoleOutput extends java.lang.Object implements TestcycleConsoleOutputReceiver
Outputs test system out/system err directly to the console
Just a step on the road to getting the separation of reporting concerns operating properly.
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.PrintStream
serr
private java.io.PrintStream
sout
private static java.nio.charset.Charset
STANDARD_CHARSET
-
Constructor Summary
Constructors Constructor Description DirectConsoleOutput(java.io.PrintStream sout, java.io.PrintStream serr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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
-
-
-
Method Detail
-
writeTestOutput
public void writeTestOutput(byte[] buf, int off, int len, boolean stdout)
Description copied from interface:ConsoleOutputReceiver
Forwards process output from the running test-case into the reporting system- Specified by:
writeTestOutput
in interfaceConsoleOutputReceiver
- Parameters:
buf
- the buffer to writeoff
- offsetlen
- lenstdout
- Indicates if this is stdout
-
testSetStarting
public void testSetStarting(ReportEntry reportEntry)
- Specified by:
testSetStarting
in interfaceTestcycleConsoleOutputReceiver
-
testSetCompleted
public void testSetCompleted(ReportEntry report)
- Specified by:
testSetCompleted
in interfaceTestcycleConsoleOutputReceiver
-
close
public void close()
- Specified by:
close
in interfaceTestcycleConsoleOutputReceiver
-
-