public class PrintWriterOutputConsumer extends java.lang.Object implements OutputConsumer
Writer| Constructor and Description |
|---|
PrintWriterOutputConsumer(java.io.PrintWriter writer)
Create a consumer that will write to the specified
Writer |
PrintWriterOutputConsumer(java.io.Writer writer)
Create a consumer that will write to the specified
Writer |
| Modifier and Type | Method and Description |
|---|---|
void |
consumeFooterLine(java.lang.String line)
Process a line from Surefire footer
|
void |
consumeHeaderLine(java.lang.String line)
Process a line from Surefire header
|
void |
consumeMessageLine(java.lang.String line)
Process a line with a Surefire message (not part of test output)
|
void |
consumeOutputLine(java.lang.String line)
Process a line from test output
|
java.io.PrintWriter |
getPrintWriter()
Get the
PrintWriter used by this object |
void |
testSetCompleted()
Do nothing
|
void |
testSetStarting(ReportEntry reportEntry)
Do nothing
|
public PrintWriterOutputConsumer(java.io.Writer writer)
Writerwriter - where to write topublic PrintWriterOutputConsumer(java.io.PrintWriter writer)
Writerwriter - where to write topublic java.io.PrintWriter getPrintWriter()
PrintWriter used by this objectpublic void consumeHeaderLine(java.lang.String line)
OutputConsumerconsumeHeaderLine in interface OutputConsumerline - the line to processpublic void consumeMessageLine(java.lang.String line)
OutputConsumerconsumeMessageLine in interface OutputConsumerline - the line to processpublic void consumeFooterLine(java.lang.String line)
OutputConsumerconsumeFooterLine in interface OutputConsumerline - the line to processpublic void consumeOutputLine(java.lang.String line)
OutputConsumerconsumeOutputLine in interface OutputConsumerline - the line to processpublic void testSetStarting(ReportEntry reportEntry)
testSetStarting in interface OutputConsumerreportEntry - The ReportEntry with the name and group (optional) of the test that startspublic void testSetCompleted()
testSetCompleted in interface OutputConsumerCopyright © 2004-2016 The Apache Software Foundation. All Rights Reserved.