org.apache.maven.surefire.booter.output
Class PrintWriterOutputConsumer

java.lang.Object
  extended by org.apache.maven.surefire.booter.output.PrintWriterOutputConsumer
All Implemented Interfaces:
OutputConsumer
Direct Known Subclasses:
StandardOutputConsumer

public class PrintWriterOutputConsumer
extends java.lang.Object
implements OutputConsumer

Surefire output consumer that writes everything to a Writer

Since:
2.1
Version:
$Id: PrintWriterOutputConsumer.java 510866 2007-02-23 08:13:49Z brett $
Author:
Carlos Sanchez

Constructor Summary
PrintWriterOutputConsumer()
          Create a consumer uninitialized, setPrintWriter(PrintWriter) must be called before using it
PrintWriterOutputConsumer(java.io.Writer writer)
          Create a consumer that will write to the specified Writer
 
Method Summary
 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 setPrintWriter(java.io.PrintWriter writer)
          Set the PrintWriter used by this object
 void testSetCompleted()
          Do nothing
 void testSetStarting(org.apache.maven.surefire.report.ReportEntry reportEntry)
          Do nothing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrintWriterOutputConsumer

public PrintWriterOutputConsumer()
Create a consumer uninitialized, setPrintWriter(PrintWriter) must be called before using it


PrintWriterOutputConsumer

public PrintWriterOutputConsumer(java.io.Writer writer)
Create a consumer that will write to the specified Writer

Parameters:
writer - where to write to
Method Detail

setPrintWriter

public void setPrintWriter(java.io.PrintWriter writer)
Set the PrintWriter used by this object

Parameters:
writer -

getPrintWriter

public java.io.PrintWriter getPrintWriter()
Get the PrintWriter used by this object


consumeHeaderLine

public void consumeHeaderLine(java.lang.String line)
Description copied from interface: OutputConsumer
Process a line from Surefire header

Specified by:
consumeHeaderLine in interface OutputConsumer
Parameters:
line - the line to process

consumeMessageLine

public void consumeMessageLine(java.lang.String line)
Description copied from interface: OutputConsumer
Process a line with a Surefire message (not part of test output)

Specified by:
consumeMessageLine in interface OutputConsumer
Parameters:
line - the line to process

consumeFooterLine

public void consumeFooterLine(java.lang.String line)
Description copied from interface: OutputConsumer
Process a line from Surefire footer

Specified by:
consumeFooterLine in interface OutputConsumer
Parameters:
line - the line to process

consumeOutputLine

public void consumeOutputLine(java.lang.String line)
Description copied from interface: OutputConsumer
Process a line from test output

Specified by:
consumeOutputLine in interface OutputConsumer
Parameters:
line - the line to process

testSetStarting

public void testSetStarting(org.apache.maven.surefire.report.ReportEntry reportEntry)
Do nothing

Specified by:
testSetStarting in interface OutputConsumer
Parameters:
reportEntry - The ReportEntry with the name and group (optional) of the test that starts

testSetCompleted

public void testSetCompleted()
Do nothing

Specified by:
testSetCompleted in interface OutputConsumer


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.