org.apache.maven.plugin.surefire.booterclient.output
Class PrintWriterOutputConsumer

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

public class PrintWriterOutputConsumer
extends Object
implements OutputConsumer

Surefire output consumer that writes everything to a Writer

Since:
2.1
Version:
$Id: PrintWriterOutputConsumer.java 1039320 2010-11-26 11:48:24Z krosenvold $
Author:
Carlos Sanchez

Constructor Summary
PrintWriterOutputConsumer(PrintWriter writer)
          Create a consumer that will write to the specified Writer
PrintWriterOutputConsumer(Writer writer)
          Create a consumer that will write to the specified Writer
 
Method Summary
 void consumeFooterLine(String line)
          Process a line from Surefire footer
 void consumeHeaderLine(String line)
          Process a line from Surefire header
 void consumeMessageLine(String line)
          Process a line with a Surefire message (not part of test output)
 void consumeOutputLine(String line)
          Process a line from test output
 PrintWriter getPrintWriter()
          Get the PrintWriter used by this object
 void testSetCompleted()
          Do nothing
 void testSetStarting(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(Writer writer)
Create a consumer that will write to the specified Writer

Parameters:
writer - where to write to

PrintWriterOutputConsumer

public PrintWriterOutputConsumer(PrintWriter writer)
Create a consumer that will write to the specified Writer

Parameters:
writer - where to write to
Method Detail

getPrintWriter

public PrintWriter getPrintWriter()
Get the PrintWriter used by this object

Returns:
the printWriter

consumeHeaderLine

public void consumeHeaderLine(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(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(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(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(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 The Apache Software Foundation. All Rights Reserved.