Class jls.jsunit.TestCase

A test case defines the fixture to run multiple tests. The test cases can be launched by using the jls.jsunit.TestRunner class.
Defined in: TestCase.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Constructs a test case with the given name.
Method Summary
Method Attributes Method Name and Description
 
Returns the test case count.
 
Returns this test case name.
 
Override to run the test and assert its state.
 
setName(name)
Sets this test case name.
 
Sets up the fixture.
 
Tears down the fixture.
Class Detail
jls.jsunit.TestCase(name)
Constructs a test case with the given name.
Parameters:
{String} name
The name of the test case.
Method Detail
{Number} countTestCases()
Returns the test case count.
Returns:
{Number} The test case count.

{String} getName()
Returns this test case name.
Returns:
{String} The name of the test case.

runTest()
Override to run the test and assert its state.

{jls.jsunit.TestCase} setName(name)
Sets this test case name.
Parameters:
{String} name
The name of the test case.
Returns:
{jls.jsunit.TestCase} This test case.

setUp()
Sets up the fixture. This method is called before a test is executed.

tearDown()
Tears down the fixture. This method is called after a test is executed.

Documentation generated by JsDoc Toolkit 2.3.2 on Sat Jan 08 2011 01:56:36 GMT+0100 (CET)