org.apache.maven.surefire.booter
Class StartupReportConfiguration

java.lang.Object
  extended by org.apache.maven.surefire.booter.StartupReportConfiguration

public class StartupReportConfiguration
extends java.lang.Object

All the parameters used to construct reporters

Author:
Kristian Rosenvold

Field Summary
static java.lang.String BRIEF_REPORT_FORMAT
           
static java.lang.String PLAIN_REPORT_FORMAT
           
 
Constructor Summary
StartupReportConfiguration(boolean useFile, boolean printSummary, java.lang.String reportFormat, boolean redirectTestOutputToFile, boolean disableXmlReport, java.io.File reportsDirectory, boolean trimStackTrace, java.lang.String reportNameSuffix, java.lang.String configurationHash, boolean requiresRunHistory)
           
 
Method Summary
static StartupReportConfiguration defaultNoXml()
           
static StartupReportConfiguration defaultValue()
           
 java.lang.String getConfigurationHash()
           
 java.lang.String getConsoleOutputFileReporterName()
           
 java.lang.String getConsoleReporter()
          Returns the reporter that will write to the console
 java.lang.String getFileReporter()
           
 java.lang.String getReportFormat()
           
 java.lang.String getReportNameSuffix()
           
 java.util.List getReports()
          A list of classnames representing runnable reports for this test-run.
 java.io.File getReportsDirectory()
           
 java.io.File getStatisticsFile()
           
 java.util.Properties getTestVmSystemProperties()
           
 java.lang.String getXmlReporterName()
           
 Reporter instantiateConsoleOutputFileReporter(java.io.PrintStream originalSystemOut)
           
 AbstractConsoleReporter instantiateConsoleReporter()
           
 AbstractFileReporter instantiateFileReporter()
           
 StatisticsReporter instantiateStatisticsReporter()
           
 XMLReporter instantiateXmlReporter()
           
 boolean isDisableXmlReport()
           
 boolean isPrintSummary()
           
 boolean isRedirectTestOutputToFile()
           
 boolean isRequiresRunHistory()
           
 boolean isTrimStackTrace()
           
 boolean isUseFile()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BRIEF_REPORT_FORMAT

public static final java.lang.String BRIEF_REPORT_FORMAT
See Also:
Constant Field Values

PLAIN_REPORT_FORMAT

public static final java.lang.String PLAIN_REPORT_FORMAT
See Also:
Constant Field Values
Constructor Detail

StartupReportConfiguration

public StartupReportConfiguration(boolean useFile,
                                  boolean printSummary,
                                  java.lang.String reportFormat,
                                  boolean redirectTestOutputToFile,
                                  boolean disableXmlReport,
                                  java.io.File reportsDirectory,
                                  boolean trimStackTrace,
                                  java.lang.String reportNameSuffix,
                                  java.lang.String configurationHash,
                                  boolean requiresRunHistory)
Method Detail

defaultValue

public static StartupReportConfiguration defaultValue()

defaultNoXml

public static StartupReportConfiguration defaultNoXml()

isUseFile

public boolean isUseFile()

isPrintSummary

public boolean isPrintSummary()

getReportFormat

public java.lang.String getReportFormat()

getReportNameSuffix

public java.lang.String getReportNameSuffix()

isRedirectTestOutputToFile

public boolean isRedirectTestOutputToFile()

isDisableXmlReport

public boolean isDisableXmlReport()

getReportsDirectory

public java.io.File getReportsDirectory()

getXmlReporterName

public java.lang.String getXmlReporterName()

instantiateXmlReporter

public XMLReporter instantiateXmlReporter()

getFileReporter

public java.lang.String getFileReporter()

instantiateFileReporter

public AbstractFileReporter instantiateFileReporter()

getConsoleReporter

public java.lang.String getConsoleReporter()
Returns the reporter that will write to the console

Returns:
a console reporter of null if no console reporting

instantiateConsoleReporter

public AbstractConsoleReporter instantiateConsoleReporter()

getConsoleOutputFileReporterName

public java.lang.String getConsoleOutputFileReporterName()

instantiateConsoleOutputFileReporter

public Reporter instantiateConsoleOutputFileReporter(java.io.PrintStream originalSystemOut)

instantiateStatisticsReporter

public StatisticsReporter instantiateStatisticsReporter()

getStatisticsFile

public java.io.File getStatisticsFile()

getReports

public java.util.List getReports()
A list of classnames representing runnable reports for this test-run.

Returns:
A list of strings, each string is a classname of a class implementing the org.apache.maven.surefire.report.Reporter interface

getTestVmSystemProperties

public java.util.Properties getTestVmSystemProperties()

isTrimStackTrace

public boolean isTrimStackTrace()

getConfigurationHash

public java.lang.String getConfigurationHash()

isRequiresRunHistory

public boolean isRequiresRunHistory()


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