JsUnit 1.3
Project Developer Home doxygen

Test Class Reference

Inheritance diagram for Test:

Inheritance graph
[legend]
List of all members.

Detailed Description

A test can be run and collect its results.

Note:
Additional to JsUnit 3.8 the test has always a name. The interface requires a getter and a setter and a method to search for tests.


Public Member Functions

virtual void Test ()
virtual TestResult run (TestResult result)
 Runs the test.
virtual String getName ()
 Retrieves the name of the test.
virtual void setName (String testName)
 Sets the name of the test.
virtual Test findTest (String testName)
 Search a test by name.
virtual Number countTestCases ()
 Counts the number of test cases that will be run by this test.


Constructor & Destructor Documentation

virtual void Test::Test (  )  [virtual]


Member Function Documentation

virtual TestResult Test::run ( TestResult  result  )  [virtual]

Runs the test.

Parameters:
result The result to fill.
Returns:
The result of test cases.

virtual String Test::getName (  )  [virtual]

Retrieves the name of the test.

Note:
This is an enhancement to JUnit 3.8
Returns:
The name of test.

virtual void Test::setName ( String  testName  )  [virtual]

Sets the name of the test.

Note:
This is an enhancement to JUnit 3.8
Parameters:
testName The new name of the test.

virtual Test Test::findTest ( String  testName  )  [virtual]

Search a test by name.

The function compares the given name with the name of the test and returns its own instance if the name is equal.

Note:
This is an enhancement to JUnit 3.8
Parameters:
testName The name of the searched test.
Returns:
The test instance itself of null.

virtual Number Test::countTestCases (  )  [virtual]

Counts the number of test cases that will be run by this test.

Returns:
The number of test cases.


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 Fri Oct 19 23:11:23 2007 for JsUnit by doxygen 1.5.2