org.apache.maven.plugin.surefire.report
Class FileReporterFactory

java.lang.Object
  extended by org.apache.maven.plugin.surefire.report.FileReporterFactory
All Implemented Interfaces:
ReporterFactory

public class FileReporterFactory
extends Object
implements ReporterFactory

Provides RunListener implementations to the providers.

Keeps a centralized count of test run results.

Author:
Kristian Rosenvold

Constructor Summary
FileReporterFactory(StartupReportConfiguration reportConfiguration)
           
 
Method Summary
 RunResult close()
          Closes the factory, freeing resources allocated in the factory.
 RunListener createReporter()
          Creates a reporter.
 RunStatistics getGlobalRunStatistics()
           
 void runStarting()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileReporterFactory

public FileReporterFactory(StartupReportConfiguration reportConfiguration)
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

runStarting

public void runStarting()

getGlobalRunStatistics

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


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