org.apache.maven.surefire.booter
Class ForkingReporterFactory

java.lang.Object
  extended by org.apache.maven.surefire.booter.ForkingReporterFactory
All Implemented Interfaces:
ReporterFactory

public class ForkingReporterFactory
extends Object
implements ReporterFactory

Creates ForkingReporters, which are typically one instance per TestSet or thread. This factory is only used inside forks.

Author:
Kristian Rosenvold

Constructor Summary
ForkingReporterFactory(Boolean trimstackTrace, PrintStream originalSystemOut)
           
 
Method Summary
 RunResult close()
          Closes the factory, freeing resources allocated in the factory.
 RunListener createReporter()
          Creates a reporter.
 RunStatistics getGlobalRunStatistics()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForkingReporterFactory

public ForkingReporterFactory(Boolean trimstackTrace,
                              PrintStream originalSystemOut)
Method Detail

createReporter

public RunListener createReporter()
Description copied from interface: ReporterFactory
Creates a reporter. The reporter is a singleton that is expected to be used in the provider.

Specified by:
createReporter in interface ReporterFactory
Returns:
A reporter instance

close

public RunResult close()
Description copied from interface: ReporterFactory
Closes the factory, freeing resources allocated in the factory.

Specified by:
close in interface ReporterFactory
Returns:
The run result

getGlobalRunStatistics

public RunStatistics getGlobalRunStatistics()
Specified by:
getGlobalRunStatistics in interface ReporterFactory


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