JsUnit |
A TestSuite is a composition of Tests. More...
Public Member Functions | |
void | TestSuite (Object obj) |
Constructor. More... | |
Public Attributes | |
int | mTests |
Additional Inherited Members | |
Protected Member Functions inherited from Test | |
virtual void | Test () |
virtual String | getName () |
Retrieves the name of the test. More... | |
virtual Test | findTest (String testName) |
Search a test by name. More... | |
virtual void | setName (String testName) |
Sets the name of the test. More... | |
virtual Number | countTestCases () |
Counts the number of test cases that will be run by this test. More... | |
virtual TestResult | run (TestResult result) |
Runs the test. More... | |
A TestSuite is a composition of Tests.
It runs a collection of test cases. In despite of the JUnit implementation, this class has also functionality of TestSetup of the extended JUnit framework. This is because of "recursion limits" of the JavaScript implementation of BroadVision's One-to-one Server (an OEM version of Netscape Enterprise Edition).
void TestSuite::TestSuite | ( | Object | obj | ) |
Constructor.
The constructor collects all test methods of the given object and adds them to the array of tests.
obj | if obj is an instance of a TestCase, the suite is filled with the fixtures automatically. Otherwise obj's string value is treated as name. |
int TestSuite::mTests |
JsUnit © 1999, 2000, 2001, 2002, 2003, 2006, 2007 by Jörg Schaible
|
Generated on Wed Apr 15 2015 02:33:07 for JsUnit by doxygen 1.8.5
|