|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugin.surefire.booterclient.output.OutputConsumerProxy
org.apache.maven.plugin.surefire.booterclient.output.FileOutputConsumerProxy
public class FileOutputConsumerProxy
Surefire output consumer proxy that writes test output to a 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 Summary | |
|---|---|
FileOutputConsumerProxy(OutputConsumer outputConsumer,
File reportsDirectory)
Create a consumer that will write to a File for each test |
|
| Method Summary | |
|---|---|
void |
consumeOutputLine(String line)
Write the output to the current test file |
void |
testSetCompleted()
Delegate to proxied OutputConsumer |
void |
testSetStarting(ReportEntry reportEntry)
Delegate to proxied OutputConsumer |
| Methods inherited from class org.apache.maven.plugin.surefire.booterclient.output.OutputConsumerProxy |
|---|
consumeFooterLine, consumeHeaderLine, consumeMessageLine, getOutputConsumer |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileOutputConsumerProxy(OutputConsumer outputConsumer,
File reportsDirectory)
File for each test
outputConsumer - the output consumerreportsDirectory - directory where files will be saved| Method Detail |
|---|
public void testSetStarting(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(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 | |||||||||