|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjunit.runner.BaseTestRunner
junit.textui.TestRunner
A command line based tool to run tests.
java junit.textui.TestRunner [-wait] TestCaseClassTestRunner expects the name of a TestCase class as argument. If this class defines a static
suite
method it
will be invoked and the returned test is run. Otherwise all
the methods starting with "test" having no arguments are run.
When the wait command line argument is given TestRunner waits until the users types RETURN.
TestRunner prints a trace as the tests are executed followed by a summary at the end.
フィールドの概要 | |
static int |
EXCEPTION_EXIT
|
static int |
FAILURE_EXIT
|
static int |
SUCCESS_EXIT
|
クラス junit.runner.BaseTestRunner から継承したフィールド |
SUITE_METHODNAME |
コンストラクタの概要 | |
TestRunner()
Constructs a TestRunner. |
|
TestRunner(java.io.PrintStream writer)
Constructs a TestRunner using the given stream for all the output |
|
TestRunner(ResultPrinter printer)
Constructs a TestRunner using the given ResultPrinter all the output |
メソッドの概要 | |
protected TestResult |
createTestResult()
Creates the TestResult to be used for the test run. |
TestResult |
doRun(Test test)
|
TestResult |
doRun(Test suite,
boolean wait)
|
TestSuiteLoader |
getLoader()
Always use the StandardTestSuiteLoader. |
static void |
main(java.lang.String[] args)
|
protected void |
pause(boolean wait)
|
static void |
run(java.lang.Class testClass)
Runs a suite extracted from a TestCase subclass. |
static TestResult |
run(Test test)
Runs a single test and collects its results. |
static void |
runAndWait(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. |
void |
setPrinter(ResultPrinter printer)
|
protected TestResult |
start(java.lang.String[] args)
Starts a test run. |
void |
testEnded(java.lang.String testName)
|
void |
testFailed(int status,
Test test,
java.lang.Throwable t)
|
void |
testStarted(java.lang.String testName)
|
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
public static final int SUCCESS_EXIT
public static final int FAILURE_EXIT
public static final int EXCEPTION_EXIT
コンストラクタの詳細 |
public TestRunner()
public TestRunner(java.io.PrintStream writer)
public TestRunner(ResultPrinter printer)
メソッドの詳細 |
public static void run(java.lang.Class testClass)
public static TestResult run(Test test)
public static void main (String[] args) { test.textui.TestRunner.run(suite()); }
public static void runAndWait(Test suite)
public TestSuiteLoader getLoader()
BaseTestRunner
内の getLoader
public void testFailed(int status, Test test, java.lang.Throwable t)
BaseTestRunner
内の testFailed
public void testStarted(java.lang.String testName)
BaseTestRunner
内の testStarted
public void testEnded(java.lang.String testName)
BaseTestRunner
内の testEnded
protected TestResult createTestResult()
public TestResult doRun(Test test)
public TestResult doRun(Test suite, boolean wait)
protected void pause(boolean wait)
public static void main(java.lang.String[] args)
protected TestResult start(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
protected void runFailed(java.lang.String message)
BaseTestRunner
の記述:
BaseTestRunner
内の runFailed
public void setPrinter(ResultPrinter printer)
|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |