|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 savedMethod Detail |
---|
public void testSetStarting(ReportEntry reportEntry)
OutputConsumerProxy
OutputConsumer
testSetStarting
in interface OutputConsumer
testSetStarting
in class OutputConsumerProxy
reportEntry
- The ReportEntry
with the name and group (optional) of the test that startspublic void testSetCompleted()
OutputConsumerProxy
OutputConsumer
testSetCompleted
in interface OutputConsumer
testSetCompleted
in class OutputConsumerProxy
public void consumeOutputLine(String line)
consumeOutputLine
in interface OutputConsumer
consumeOutputLine
in class OutputConsumerProxy
line
- the line to process
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |