junit.ui
Class TestRunner
java.lang.Object
|
+--junit.ui.TestRunner
- public class TestRunner
- extends java.lang.Object
- implements TestListener
A simple user interface to run tests.
Enter the name of a class with a suite method which should return
the tests to be run.
Synopsis: java java.ui.TestRunner [TestCase]
TestRunner takes as an optional argument the name of the testcase class to be run.
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
TestRunner
public TestRunner()
addError
public void addError(Test test,
java.lang.Throwable t)
- Specified by:
- addError in interface TestListener
addFailure
public void addFailure(Test test,
java.lang.Throwable t)
- Specified by:
- addFailure in interface TestListener
endTest
public void endTest(Test test)
- Specified by:
- endTest in interface TestListener
main
public static void main(java.lang.String[] args)
- main entrypoint
run
public void run()
- Deprecated. use runSuite() instead
- runs a suite.
runSuite
public void runSuite()
setSuiteName
public void setSuiteName(java.lang.String suite)
start
public void start(java.lang.String[] args,
TestSuiteLoader loader)
- Starts the TestRunner
startTest
public void startTest(Test test)
- Specified by:
- startTest in interface TestListener