public class ConsoleOutputFileReporter extends Object implements Reporter
File for each test suite.
This class is not threadsafe, but can be encapsulated with a SynchronizedOutputConsumer. It may still be
accessed from different threads (serially).| Constructor and Description |
|---|
ConsoleOutputFileReporter(File reportsDirectory) |
ConsoleOutputFileReporter(File reportsDirectory,
String reportNameSuffix) |
| Modifier and Type | Method and Description |
|---|---|
void |
reset()
Restores the instance of the reporter, making the instance re-usable for a subsequent run in the
same thread.
|
void |
testError(ReportEntry report,
String stdOut,
String stdErr)
Event fired when a test ended with an error (non anticipated problem)
|
void |
testFailed(ReportEntry report,
String stdOut,
String stdErr)
Event fired when a test ended with a failure (anticipated problem)
|
void |
testSetCompleted(ReportEntry report)
Indicates end of a given test-set
|
void |
testSetStarting(ReportEntry reportEntry)
Indicates the start of a given test-set
|
void |
testSkipped(ReportEntry report) |
void |
testStarting(ReportEntry report)
Event fired when a test is about to start
|
void |
testSucceeded(ReportEntry report)
Event fired when a test ended successfully
|
void |
writeMessage(byte[] b,
int off,
int len) |
void |
writeMessage(String message)
Writes a message that will be displayed in all free-text format reporters.
|
public ConsoleOutputFileReporter(File reportsDirectory)
public void testSetStarting(ReportEntry reportEntry)
ReportertestSetStarting in interface ReporterreportEntry - the report entry describing the testsetpublic void testSetCompleted(ReportEntry report) throws ReporterException
ReportertestSetCompleted in interface Reporterreport - the report entry describing the testsetReporterException - When reporting failspublic void writeMessage(byte[] b,
int off,
int len)
writeMessage in interface Reporterpublic void testStarting(ReportEntry report)
ReportertestStarting in interface Reporterreport - The report entry to log forpublic void testSucceeded(ReportEntry report)
ReportertestSucceeded in interface Reporterreport - The report entry to log forpublic void testSkipped(ReportEntry report)
testSkipped in interface Reporterpublic void testError(ReportEntry report, String stdOut, String stdErr)
Reporterpublic void testFailed(ReportEntry report, String stdOut, String stdErr)
ReportertestFailed in interface Reporterreport - The report entry to log forstdOut - standard output from the test casestdErr - error output from the test casepublic void writeMessage(String message)
ReporterwriteMessage in interface Reportermessage - The message to write.Copyright © 2004-2012 Apache Software Foundation. All Rights Reserved.