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

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

public class ForkClient
extends Object
implements StreamConsumer

Knows how to reconstruct *all* the state transmitted over stdout by the forked process.

Author:
Kristian Rosenvold

Constructor Summary
ForkClient(DefaultReporterFactory defaultReporterFactory, Properties testVmSystemProperties)
           
ForkClient(DefaultReporterFactory defaultReporterFactory, Properties testVmSystemProperties, TestProvidingInputStream testProvidingInputStream)
           
 
Method Summary
 void close(boolean hadTimeout)
           
 void consumeLine(String s)
           
 void consumeMultiLineContent(String s)
           
 StackTraceWriter getErrorInFork()
           
 RunListener getReporter(Integer channelNumber)
          Used when getting reporters on the plugin side of a fork.
 boolean isErrorInFork()
           
 boolean isSaidGoodBye()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForkClient

public ForkClient(DefaultReporterFactory defaultReporterFactory,
                  Properties testVmSystemProperties)

ForkClient

public ForkClient(DefaultReporterFactory defaultReporterFactory,
                  Properties testVmSystemProperties,
                  TestProvidingInputStream testProvidingInputStream)
Method Detail

consumeLine

public void consumeLine(String s)
Specified by:
consumeLine in interface StreamConsumer

consumeMultiLineContent

public void consumeMultiLineContent(String s)
                             throws IOException
Throws:
IOException

getReporter

public RunListener getReporter(Integer channelNumber)
Used when getting reporters on the plugin side of a fork.

Parameters:
channelNumber - The logical channel number
Returns:
A mock provider reporter

close

public void close(boolean hadTimeout)

isSaidGoodBye

public boolean isSaidGoodBye()

getErrorInFork

public StackTraceWriter getErrorInFork()

isErrorInFork

public boolean isErrorInFork()


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