org.apache.maven.surefire.booter
Class SurefireBooter

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

public class SurefireBooter
extends java.lang.Object

Version:
$Id: SurefireBooter.java 510866 2007-02-23 08:13:49Z brett $
Author:
Jason van Zyl, Emmanuel Venisse

Constructor Summary
SurefireBooter()
           
 
Method Summary
 void addClassPathUrl(java.lang.String path)
           
 void addReport(java.lang.String report)
           
 void addReport(java.lang.String report, java.lang.Object[] constructorParams)
           
 void addSurefireBootClassPathUrl(java.lang.String path)
           
 void addSurefireClassPathUrl(java.lang.String path)
           
 void addTestSuite(java.lang.String suiteClassName, java.lang.Object[] constructorParams)
           
 java.io.File getReportsDirectory()
          Get the directory where reports will be saved
static void main(java.lang.String[] args)
          This method is invoked when Surefire is forked - this method parses and organizes the arguments passed to it and then calls the Surefire class' run method.
 boolean run()
           
 void setChildDelegation(boolean childDelegation)
           
 void setForkConfiguration(ForkConfiguration forkConfiguration)
           
 void setRedirectTestOutputToFile(boolean redirectTestOutputToFile)
          When forking, setting this to true will make the test output to be saved in a file instead of showing it on the standard output
 void setReportsDirectory(java.io.File reportsDirectory)
          Set the directory where reports will be saved
 void setUseSystemClassLoader(boolean useSystemClassLoader)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SurefireBooter

public SurefireBooter()
Method Detail

addReport

public void addReport(java.lang.String report)

addReport

public void addReport(java.lang.String report,
                      java.lang.Object[] constructorParams)

addTestSuite

public void addTestSuite(java.lang.String suiteClassName,
                         java.lang.Object[] constructorParams)

addClassPathUrl

public void addClassPathUrl(java.lang.String path)

addSurefireClassPathUrl

public void addSurefireClassPathUrl(java.lang.String path)

addSurefireBootClassPathUrl

public void addSurefireBootClassPathUrl(java.lang.String path)

setRedirectTestOutputToFile

public void setRedirectTestOutputToFile(boolean redirectTestOutputToFile)
When forking, setting this to true will make the test output to be saved in a file instead of showing it on the standard output

Parameters:
redirectTestOutputToFile -

setReportsDirectory

public void setReportsDirectory(java.io.File reportsDirectory)
Set the directory where reports will be saved

Parameters:
reportsDirectory - the directory

getReportsDirectory

public java.io.File getReportsDirectory()
Get the directory where reports will be saved


setForkConfiguration

public void setForkConfiguration(ForkConfiguration forkConfiguration)

setUseSystemClassLoader

public void setUseSystemClassLoader(boolean useSystemClassLoader)

run

public boolean run()
            throws SurefireBooterForkException,
                   SurefireExecutionException
Throws:
SurefireBooterForkException
SurefireExecutionException

main

public static void main(java.lang.String[] args)
                 throws java.lang.Throwable
This method is invoked when Surefire is forked - this method parses and organizes the arguments passed to it and then calls the Surefire class' run method.

The system exit code will be 1 if an exception is thrown.

Parameters:
args -
Throws:
java.lang.Throwable

setChildDelegation

public void setChildDelegation(boolean childDelegation)


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