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

java.lang.Object
  extended by org.apache.maven.plugin.surefire.booterclient.output.SynchronizedOutputConsumer
All Implemented Interfaces:
OutputConsumer

public class SynchronizedOutputConsumer
extends Object
implements OutputConsumer

Imposes synchronization on a non-thredsafe OutputConsumer

Author:
Kristian Rosenvold

Constructor Summary
SynchronizedOutputConsumer(OutputConsumer target)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SynchronizedOutputConsumer

public SynchronizedOutputConsumer(OutputConsumer target)
Method Detail

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)
Description copied from interface: OutputConsumer
This method will be called when a test set starts, before consuming surefire message lines.

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()
Description copied from interface: OutputConsumer
This method will be called when a test set ends, after consuming all its surefire message lines.

Specified by:
testSetCompleted in interface OutputConsumer


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