public class ConsoleOutputFileReporter extends java.lang.Object implements TestcycleConsoleOutputReceiver
File for each test suite.
This class is not threadsafe, but can be serially handed off from thread to thread.| Modifier and Type | Field and Description |
|---|---|
private java.io.FileOutputStream |
fileOutputStream |
private java.lang.String |
reportEntryName |
private java.lang.String |
reportNameSuffix |
private java.io.File |
reportsDirectory |
| Constructor and Description |
|---|
ConsoleOutputFileReporter(java.io.File reportsDirectory,
java.lang.String reportNameSuffix) |
| 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.File reportsDirectory
private final java.lang.String reportNameSuffix
private java.lang.String reportEntryName
private java.io.FileOutputStream fileOutputStream
public ConsoleOutputFileReporter(java.io.File reportsDirectory,
java.lang.String reportNameSuffix)
public void testSetStarting(ReportEntry reportEntry)
testSetStarting in interface TestcycleConsoleOutputReceiverpublic void testSetCompleted(ReportEntry report)
testSetCompleted in interface TestcycleConsoleOutputReceiverpublic void close()
close in interface TestcycleConsoleOutputReceiverpublic void writeTestOutput(byte[] buf,
int off,
int len,
boolean stdout)
ConsoleOutputReceiverwriteTestOutput in interface ConsoleOutputReceiverbuf - the buffer to writeoff - offsetlen - lenstdout - Indicates if this is stdout