org.apache.maven.surefire.booter
Class StartupReportConfiguration

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

public class StartupReportConfiguration
extends Object

All the parameters used to construct reporters

TODO: Move out of API module

Author:
Kristian Rosenvold

Field Summary
static String BRIEF_REPORT_FORMAT
           
static String PLAIN_REPORT_FORMAT
           
 
Constructor Summary
StartupReportConfiguration(boolean useFile, boolean printSummary, String reportFormat, boolean redirectTestOutputToFile, boolean disableXmlReport, File reportsDirectory, boolean trimStackTrace)
           
StartupReportConfiguration(boolean useFile, boolean printSummary, String reportFormat, boolean redirectTestOutputToFile, boolean disableXmlReport, File reportsDirectory, boolean trimStackTrace, String reportNameSuffix)
           
 
Method Summary
static StartupReportConfiguration defaultNoXml()
           
static StartupReportConfiguration defaultValue()
           
 String getConsoleOutputFileReporterName()
           
 String getConsoleReporter()
          Returns the reporter that will write to the console
 String getFileReporter()
           
 String getReportFormat()
           
 String getReportNameSuffix()
           
 List getReports()
          A list of classnames representing runnable reports for this test-run.
 File getReportsDirectory()
           
 Properties getTestVmSystemProperties()
           
 String getXmlReporterName()
           
 Reporter instantiateConsoleOutputFileReporterName(PrintStream originalSystemOut)
           
 AbstractConsoleReporter instantiateConsoleReporter()
           
 AbstractFileReporter instantiateFileReporter()
           
 XMLReporter instantiateXmlReporter()
           
 boolean isDisableXmlReport()
           
 boolean isPrintSummary()
           
 boolean isRedirectTestOutputToFile()
           
 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 String BRIEF_REPORT_FORMAT
See Also:
Constant Field Values

PLAIN_REPORT_FORMAT

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

StartupReportConfiguration

public StartupReportConfiguration(boolean useFile,
                                  boolean printSummary,
                                  String reportFormat,
                                  boolean redirectTestOutputToFile,
                                  boolean disableXmlReport,
                                  File reportsDirectory,
                                  boolean trimStackTrace)

StartupReportConfiguration

public StartupReportConfiguration(boolean useFile,
                                  boolean printSummary,
                                  String reportFormat,
                                  boolean redirectTestOutputToFile,
                                  boolean disableXmlReport,
                                  File reportsDirectory,
                                  boolean trimStackTrace,
                                  String reportNameSuffix)
Method Detail

defaultValue

public static StartupReportConfiguration defaultValue()

defaultNoXml

public static StartupReportConfiguration defaultNoXml()

isUseFile

public boolean isUseFile()

isPrintSummary

public boolean isPrintSummary()

getReportFormat

public String getReportFormat()

getReportNameSuffix

public String getReportNameSuffix()

isRedirectTestOutputToFile

public boolean isRedirectTestOutputToFile()

isDisableXmlReport

public boolean isDisableXmlReport()

getReportsDirectory

public File getReportsDirectory()

getXmlReporterName

public String getXmlReporterName()

instantiateXmlReporter

public XMLReporter instantiateXmlReporter()

getFileReporter

public String getFileReporter()

instantiateFileReporter

public AbstractFileReporter instantiateFileReporter()

getConsoleReporter

public 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 String getConsoleOutputFileReporterName()

instantiateConsoleOutputFileReporterName

public Reporter instantiateConsoleOutputFileReporterName(PrintStream originalSystemOut)

getReports

public 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 Properties getTestVmSystemProperties()

isTrimStackTrace

public boolean isTrimStackTrace()


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