Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
How Many Test Runners Are Supported in JUnit 3.8?
How Many Test Runners Are Supported in JUnit 3.8?
✍: FYICenter.com QA Team
JUnit 3.8 supports 3 test runners:
junit.textui.TestRunner - A command line based tool to run tests. TestRunner 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.
junit.awtgui.TestRunner - An AWT based user interface to run tests. Enter the name of a class which either provides a static suite method or is a subclass of TestCase. TestRunner takes as an optional argument the name of the testcase class to be run.
junit.swingui.TestRunner - A Swing based user interface to run tests. Enter the name of a class which either provides a static suite method or is a subclass of TestCase. TestRunner takes as an optional argument the name of the testcase class to be run.
All 3 runners can be executed directly by JVM with a class name as an argument
java junit.xxxui.TestRunner [classname]
The specified class must be a subclass of "junit.framework.TestCase". In this case, all "public void testXXX()" methods will be executed as tests.
Or the specified class must provide a "public static Test suite()" method. The returning object is an instance of the TestSuite class representing a collection of tests. The TestSuite class implements the Test interface. In this case, all tests in the TestSuite object will be executed.
2008-03-04, 5634👍, 0💬
Popular Posts:
How To Avoid the Undefined Index Error? - PHP Script Tips - Processing Web Forms If you don't want y...
What's difference between HashTable and ArrayList ? You can access array using INDEX value of array,...
How To Define a Data Source Name (DSN) in ODBC Manager? - Oracle DBA FAQ - ODBC Drivers, DSN Configu...
What will be printed as the result of the operation below: main() { int x=5; printf("%d,%d,%d\n",x,x. ..
What is XSLT? XSLT is a rule based language used to transform XML documents in to other file formats...