|
UTF-X, Unit Testing Framework - Xslt | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.runner.BaseTestRunner utfx.runner.TestRunner
public class TestRunner
UTF-X TestRunner. This code is based on the original
junit.textui.TestRunner
class written by Kent Beck and Erich
Gamma.
FIXME rewrite me please
Copyright © 2004-2005 University of Southern Queensland and others.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License v2 as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
$Source: /cvs/utf-x/framework/src/java/utfx/runner/TestRunner.java,v $
Field Summary | |
---|---|
private ConfigurationManager |
cm
|
static int |
EXCEPTION_EXIT
|
static int |
FAILURE_EXIT
|
private org.apache.log4j.Logger |
log
logger |
(package private) ResultPrinterFactory |
rpf
result printer factory |
static int |
SUCCESS_EXIT
|
Fields inherited from class junit.runner.BaseTestRunner |
---|
SUITE_METHODNAME |
Constructor Summary | |
---|---|
TestRunner()
Construct a new UTF-X test runner object. |
Method Summary | |
---|---|
protected junit.framework.TestResult |
createTestResult()
|
private void |
displayReport()
Attempt to open the report in a browser. |
junit.framework.TestResult |
doRun(junit.framework.Test suite,
ResultPrinterFactory rpf)
This is where we run the tests. |
private void |
generateReport(java.io.InputStream xmlIs)
|
junit.runner.TestSuiteLoader |
getLoader()
Always use the StandardTestSuiteLoader. |
static void |
main(java.lang.String[] args)
Main method |
static junit.framework.TestResult |
run(junit.framework.Test test,
ResultPrinterFactory rpf)
Runs a single test and collects its results. |
protected void |
runFailed(java.lang.String message)
|
private void |
runSuite(junit.framework.TestSuite suite,
junit.framework.TestResult result,
ResultPrinter[] rp)
Run a test suite |
private void |
runTest(junit.framework.Test test,
junit.framework.TestResult result,
ResultPrinter[] rp)
Run a test of unspecified type (class) |
private void |
runTestCase(junit.framework.TestCase testCase,
junit.framework.TestResult result)
Run an individual test case. |
protected junit.framework.TestResult |
start(java.lang.String[] args)
Starts a test run. |
void |
testEnded(java.lang.String testName)
|
void |
testFailed(int status,
junit.framework.Test test,
java.lang.Throwable t)
|
void |
testStarted(java.lang.String testName)
|
Methods inherited from class junit.runner.BaseTestRunner |
---|
addError, addFailure, clearStatus, elapsedTimeAsString, endTest, extractClassName, getFilteredTrace, getFilteredTrace, getPreference, getPreference, getPreferences, getTest, inVAJava, loadSuiteClass, processArguments, savePreferences, setLoading, setPreference, setPreferences, showStackRaw, startTest, truncate, useReloadingTestSuiteLoader |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
ResultPrinterFactory rpf
private org.apache.log4j.Logger log
private ConfigurationManager cm
public static final int SUCCESS_EXIT
public static final int FAILURE_EXIT
public static final int EXCEPTION_EXIT
Constructor Detail |
---|
public TestRunner()
Method Detail |
---|
public static junit.framework.TestResult run(junit.framework.Test test, ResultPrinterFactory rpf)
public junit.runner.TestSuiteLoader getLoader()
getLoader
in class junit.runner.BaseTestRunner
public void testFailed(int status, junit.framework.Test test, java.lang.Throwable t)
testFailed
in class junit.runner.BaseTestRunner
public void testStarted(java.lang.String testName)
testStarted
in class junit.runner.BaseTestRunner
public void testEnded(java.lang.String testName)
testEnded
in class junit.runner.BaseTestRunner
protected junit.framework.TestResult createTestResult()
public junit.framework.TestResult doRun(junit.framework.Test suite, ResultPrinterFactory rpf)
suite
- suite of tests to runprivate void generateReport(java.io.InputStream xmlIs) throws java.lang.Exception
java.lang.Exception
private void displayReport()
private void runTestCase(junit.framework.TestCase testCase, junit.framework.TestResult result)
private void runTest(junit.framework.Test test, junit.framework.TestResult result, ResultPrinter[] rp)
private void runSuite(junit.framework.TestSuite suite, junit.framework.TestResult result, ResultPrinter[] rp)
protected junit.framework.TestResult start(java.lang.String[] args) throws java.lang.Exception
args
- array of comman line argument; same as the arguments passed to
main().
java.lang.Exception
protected void runFailed(java.lang.String message)
runFailed
in class junit.runner.BaseTestRunner
public static void main(java.lang.String[] args)
|
UTF-X, Unit Testing Framework - Xslt | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |