junit.extensions.jfunc.textui
Class JFuncRunner

java.lang.Object
  |
  +--junit.extensions.jfunc.runner.BaseTestRunner
        |
        +--junit.extensions.jfunc.textui.JFuncRunner

public class JFuncRunner
extends BaseTestRunner

A command line based tool to run tests.


Fields inherited from class junit.extensions.jfunc.runner.BaseTestRunner
SUITE_METHODNAME
 
Constructor Summary
JFuncRunner()
          Constructs a TestRunner.
JFuncRunner(java.io.PrintStream writer)
          Constructs a TestRunner using the given stream for all the output
 
Method Summary
 boolean beVerbose()
           
protected  junit.framework.TestResult createTestResult()
          Creates the TestResult to be used for the test run.
 junit.framework.TestResult doRun(junit.framework.Test suite, boolean wait)
           
 junit.runner.TestSuiteLoader getLoader()
          Always use the StandardTestSuiteLoader.
static void main(java.lang.String[] args)
           
protected  void pause(boolean wait)
           
 void print(junit.framework.TestResult result)
          Prints failures to the standard output
 void printErrors(junit.framework.TestResult result)
          Prints the errors to the standard output
 void printFailures(junit.framework.TestResult result)
          Prints failures to the standard output
 void printHeader(junit.framework.TestResult result)
          Prints the header of the report
static void run(java.lang.Class testClass)
          Runs a suite extracted from a TestCase subclass.
static void run(junit.framework.Test suite)
          Runs a single test and collects its results.
static void runAndWait(junit.framework.Test suite)
          Runs a single test and waits until the user types RETURN.
protected  void runFailed(java.lang.String message)
          Override to define how to handle a failed loading of a test suite.
protected  junit.framework.TestResult start(java.lang.String[] args)
          Starts a test run.
 boolean useColor()
           
protected  java.io.PrintStream writer()
           
 
Methods inherited from class junit.extensions.jfunc.runner.BaseTestRunner
clearStatus, elapsedTimeAsString, extractClassName, filterStack, filterStack, getFilteredTrace, getFilteredTrace, getPreference, getPreference, getTest, getTest, inVAJava, loadSuiteClass, processArguments, setLoading, truncate, useReloadingTestSuiteLoader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JFuncRunner

public JFuncRunner()
Constructs a TestRunner.

JFuncRunner

public JFuncRunner(java.io.PrintStream writer)
Constructs a TestRunner using the given stream for all the output
Method Detail

getLoader

public junit.runner.TestSuiteLoader getLoader()
Always use the StandardTestSuiteLoader. Overridden from BaseTestRunner.
Overrides:
getLoader in class BaseTestRunner

createTestResult

protected junit.framework.TestResult createTestResult()
Creates the TestResult to be used for the test run.

doRun

public junit.framework.TestResult doRun(junit.framework.Test suite,
                                        boolean wait)

pause

protected void pause(boolean wait)

useColor

public boolean useColor()

beVerbose

public boolean beVerbose()

main

public static void main(java.lang.String[] args)

print

public void print(junit.framework.TestResult result)
Prints failures to the standard output

printErrors

public void printErrors(junit.framework.TestResult result)
Prints the errors to the standard output

printFailures

public void printFailures(junit.framework.TestResult result)
Prints failures to the standard output

printHeader

public void printHeader(junit.framework.TestResult result)
Prints the header of the report

run

public static void run(java.lang.Class testClass)
Runs a suite extracted from a TestCase subclass.

run

public static void run(junit.framework.Test suite)
Runs a single test and collects its results. This method can be used to start a test run from your program.
 public static void main (String[] args) {
     test.textui.TestRunner.run(suite());
 }
 

runAndWait

public static void runAndWait(junit.framework.Test suite)
Runs a single test and waits until the user types RETURN.

start

protected junit.framework.TestResult start(java.lang.String[] args)
                                    throws java.lang.Exception
Starts a test run. Analyzes the command line arguments and runs the given test suite.

runFailed

protected void runFailed(java.lang.String message)
Description copied from class: BaseTestRunner
Override to define how to handle a failed loading of a test suite.
Overrides:
runFailed in class BaseTestRunner

writer

protected java.io.PrintStream writer()