JsUnit
Project Developer Home doxygen

Public Member Functions | Public Attributes | List of all members
TestSuite Class Reference

A TestSuite is a composition of Tests. More...

Inheritance diagram for TestSuite:
Inheritance graph
Collaboration diagram for TestSuite:
Collaboration graph

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...
 

Detailed Description

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).

See Also
Test

Constructor & Destructor Documentation

void TestSuite::TestSuite ( Object  obj)

Constructor.

The constructor collects all test methods of the given object and adds them to the array of tests.

Parameters
objif obj is an instance of a TestCase, the suite is filled with the fixtures automatically. Otherwise obj's string value is treated as name.

Member Data Documentation

int TestSuite::mTests

The documentation for this class was generated from the following file:

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