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

TODO: Move out of API module

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)
           
 
Method Summary
static StartupReportConfiguration defaultNoXml()
           
static StartupReportConfiguration defaultValue()
           
 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.util.List getReports()
          A list of classnames representing runnable reports for this test-run.
 java.io.File getReportsDirectory()
           
 java.util.Properties getTestVmSystemProperties()
           
 java.lang.String getXmlReporterName()
           
 Reporter instantiateConsoleOutputFileReporterName(java.io.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 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)
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()

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()

instantiateConsoleOutputFileReporterName

public Reporter instantiateConsoleOutputFileReporterName(java.io.PrintStream originalSystemOut)

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()


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