org.apache.maven.plugin.surefire.booterclient.output
Interface OutputConsumer

All Known Implementing Classes:
FileOutputConsumerProxy, NullOutputConsumer, OutputConsumerProxy, PrintWriterOutputConsumer, StandardOutputConsumer, SupressFooterOutputConsumerProxy, SupressHeaderOutputConsumerProxy, SynchronizedOutputConsumer

public interface OutputConsumer

Surefire output consumer that will be called from Surefire when forking tests to process the lines of the surefire header, messages, footer and test output from the forked Surefire execution.

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

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
 void testSetCompleted()
          This method will be called when a test set ends, after consuming all its surefire message lines.
 void testSetStarting(ReportEntry reportEntry)
          This method will be called when a test set starts, before consuming surefire message lines.
 

Method Detail

consumeHeaderLine

void consumeHeaderLine(String line)
Process a line from Surefire header

Parameters:
line - the line to process

consumeMessageLine

void consumeMessageLine(String line)
Process a line with a Surefire message (not part of test output)

Parameters:
line - the line to process

consumeFooterLine

void consumeFooterLine(String line)
Process a line from Surefire footer

Parameters:
line - the line to process

consumeOutputLine

void consumeOutputLine(String line)
Process a line from test output

Parameters:
line - the line to process

testSetStarting

void testSetStarting(ReportEntry reportEntry)
This method will be called when a test set starts, before consuming surefire message lines.

Parameters:
reportEntry - The ReportEntry with the name and group (optional) of the test that starts

testSetCompleted

void testSetCompleted()
This method will be called when a test set ends, after consuming all its surefire message lines.



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