TestCase

Declared In:

Introduction

Models a certain configuration of the system being tested.



Member Functions

accept

TODO.

countAssertion

Increments the count of successful assertions in the current test case.

fullName

Returns the full name of this test.

numberOfAssertions

Returns the count of assertions run successfully in the current test case.

run

Makes sure that the user test script has a run method.

runCase

Runs a test case.

setUp

May be implemented by a subclass.

tearDown

May be implemented by a subclass.


accept


TODO.

on accept(
    aVisitor)

countAssertion


Increments the count of successful assertions in the current test case.

Discussion

Each assertion must call this handler after checking its assertion.


fullName


Returns the full name of this test.

on fullName()

numberOfAssertions


Returns the count of assertions run successfully in the current test case.


run


Makes sure that the user test script has a run method.

on run

runCase


Runs a test case.

on runCase()
Return Value

Nothing.

Discussion

Ensures that tearDown() is executed, even if an error was raised. Errors are passed to the caller.


setUp


May be implemented by a subclass.

on setUp()

tearDown


May be implemented by a subclass.

on tearDown()

Member Data

nAssertions

Maintains the count of non-failing assertions in the current test case.


nAssertions


Maintains the count of non-failing assertions in the current test case.

property nAssertions : 0