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.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
jls.jsunit.TestCase(name)
Constructs a test case with the given name.
|
| Method Attributes | Method Name and Description |
|---|---|
|
Returns the test case count.
|
|
|
getName()
Returns this test case name.
|
|
|
runTest()
Override to run the test and assert its state.
|
|
|
setName(name)
Sets this test case name.
|
|
|
setUp()
Sets up the fixture.
|
|
|
tearDown()
Tears down the fixture.
|