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

java.lang.Object
  extended by org.apache.maven.plugin.surefire.booterclient.output.OutputConsumerProxy
All Implemented Interfaces:
OutputConsumer
Direct Known Subclasses:
FileOutputConsumerProxy, SupressFooterOutputConsumerProxy, SupressHeaderOutputConsumerProxy

public class OutputConsumerProxy
extends Object
implements OutputConsumer

Surefire output consumer that will delegate to another OutputConsumer

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

Constructor Summary
OutputConsumerProxy(OutputConsumer outputConsumer)
          Create a output consumer that will delegate all calls to the proxied output consumer
 
Method Summary
 void consumeFooterLine(String line)
          Delegate to proxied OutputConsumer
 void consumeHeaderLine(String line)
          Delegate to proxied OutputConsumer
 void consumeMessageLine(String line)
          Delegate to proxied OutputConsumer
 void consumeOutputLine(String line)
          Delegate to proxied OutputConsumer
 OutputConsumer getOutputConsumer()
          OutputConsumer that calls will be delegated to
 void testSetCompleted()
          Delegate to proxied OutputConsumer
 void testSetStarting(ReportEntry reportEntry)
          Delegate to proxied OutputConsumer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutputConsumerProxy

public OutputConsumerProxy(OutputConsumer outputConsumer)
Create a output consumer that will delegate all calls to the proxied output consumer

Parameters:
outputConsumer - output consumer to delegate to
Method Detail

getOutputConsumer

public OutputConsumer getOutputConsumer()
OutputConsumer that calls will be delegated to

Returns:
the proxied OutputConsumer

consumeHeaderLine

public void consumeHeaderLine(String line)
Delegate to proxied OutputConsumer

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

consumeMessageLine

public void consumeMessageLine(String line)
Delegate to proxied OutputConsumer

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

consumeFooterLine

public void consumeFooterLine(String line)
Delegate to proxied OutputConsumer

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

consumeOutputLine

public void consumeOutputLine(String line)
Delegate to proxied OutputConsumer

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

testSetStarting

public void testSetStarting(ReportEntry reportEntry)
Delegate to proxied OutputConsumer

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()
Delegate to proxied OutputConsumer

Specified by:
testSetCompleted in interface OutputConsumer


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