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.PrintStreamserrprivate java.io.PrintStreamsoutprivate static java.nio.charset.CharsetSTANDARD_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 voidclose()voidtestSetCompleted(ReportEntry report)voidtestSetStarting(ReportEntry reportEntry)voidwriteTestOutput(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:ConsoleOutputReceiverForwards process output from the running test-case into the reporting system- Specified by:
writeTestOutputin interfaceConsoleOutputReceiver- Parameters:
buf- the buffer to writeoff- offsetlen- lenstdout- Indicates if this is stdout
-
testSetStarting
public void testSetStarting(ReportEntry reportEntry)
- Specified by:
testSetStartingin interfaceTestcycleConsoleOutputReceiver
-
testSetCompleted
public void testSetCompleted(ReportEntry report)
- Specified by:
testSetCompletedin interfaceTestcycleConsoleOutputReceiver
-
close
public void close()
- Specified by:
closein interfaceTestcycleConsoleOutputReceiver
-
-