JsUnit
Project Developer Home doxygen

Public Member Functions | List of all members
Test Class Reference

A test can be run and collect its results. More...

Inheritance diagram for Test:
Inheritance graph
Collaboration diagram for Test:
Collaboration graph

Public Member Functions

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

Constructor & Destructor Documentation

virtual void Test::Test ( )
virtual

Member Function Documentation

virtual Number Test::countTestCases ( )
virtual

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

Returns
The number of test cases.
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
testNameThe name of the searched test.
Returns
The test instance itself of null.
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 TestResult Test::run ( TestResult  result)
virtual

Runs the test.

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

References TestResult().

virtual void Test::setName ( String  testName)
virtual

Sets the name of the test.

Note
This is an enhancement to JUnit 3.8
Parameters
testNameThe new name of the test.

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