|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.surefire.booter.output.OutputConsumerProxy
org.apache.maven.surefire.booter.output.FileOutputConsumerProxy
public class FileOutputConsumerProxy
Surefire output consumer proxy that writes test output to a File for each test suite.
| Field Summary | |
|---|---|
private static java.lang.String |
LINE_SEPARATOR
|
private java.io.PrintWriter |
printWriter
|
private java.io.File |
reportsDirectory
|
private static java.lang.String |
USER_DIR
|
| Constructor Summary | |
|---|---|
FileOutputConsumerProxy(OutputConsumer outputConsumer)
Create a consumer that will write to a File for each test. |
|
FileOutputConsumerProxy(OutputConsumer outputConsumer,
java.io.File reportsDirectory)
Create a consumer that will write to a File for each test |
|
| Method Summary | |
|---|---|
void |
consumeOutputLine(java.lang.String line)
Write the output to the current test file |
java.io.PrintWriter |
getPrintWriter()
Get the PrintWriter used for the current test suite |
java.io.File |
getReportsDirectory()
Get the directory where reports will be saved |
void |
setPrintWriter(java.io.PrintWriter writer)
Set the PrintWriter used for the current test suite |
void |
setReportsDirectory(java.io.File reportsDirectory)
Set the directory where reports will be saved |
void |
testSetCompleted()
Delegate to proxied OutputConsumer |
void |
testSetStarting(org.apache.maven.surefire.report.ReportEntry reportEntry)
Delegate to proxied OutputConsumer |
| Methods inherited from class org.apache.maven.surefire.booter.output.OutputConsumerProxy |
|---|
consumeFooterLine, consumeHeaderLine, consumeMessageLine, getOutputConsumer, setOutputConsumer |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final java.lang.String USER_DIR
private static final java.lang.String LINE_SEPARATOR
private java.io.File reportsDirectory
private java.io.PrintWriter printWriter
| Constructor Detail |
|---|
public FileOutputConsumerProxy(OutputConsumer outputConsumer)
File for each test.
Files will be saved in working directory.
public FileOutputConsumerProxy(OutputConsumer outputConsumer,
java.io.File reportsDirectory)
File for each test
reportsDirectory - directory where files will be saved| Method Detail |
|---|
public void setReportsDirectory(java.io.File reportsDirectory)
reportsDirectory - the directorypublic java.io.File getReportsDirectory()
public void setPrintWriter(java.io.PrintWriter writer)
PrintWriter used for the current test suite
writer - public java.io.PrintWriter getPrintWriter()
PrintWriter used for the current test suite
public void testSetStarting(org.apache.maven.surefire.report.ReportEntry reportEntry)
OutputConsumerProxyOutputConsumer
testSetStarting in interface OutputConsumertestSetStarting in class OutputConsumerProxyreportEntry - The ReportEntry with the name and group (optional) of the test that startspublic void testSetCompleted()
OutputConsumerProxyOutputConsumer
testSetCompleted in interface OutputConsumertestSetCompleted in class OutputConsumerProxypublic void consumeOutputLine(java.lang.String line)
consumeOutputLine in interface OutputConsumerconsumeOutputLine in class OutputConsumerProxyline - the line to process
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||