TestSetUp |
The class TestSetUp (see Figure C-29) is a subclass of TestDecorator that implements setUp( ) and tearDown( ) methods for the decorated Test . This allows the Test object's test fixture behavior to be modified without subclassing it.
TestSetUp belongs to the namespace CppUnit . It is declared in the file extensions/TestSetUp.h and implemented in the file TestSetUp.cpp .
class TestSetUp : public TestDecorator
A constructor taking the Test to decorate.
Calls setUp( ) , runs the decorated Test , and calls tearDown( ) .
A Protected method called prior to running the decorated Test , allowing custom test fixture behavior to be implemented.
A Protected method called after running the decorated Test , allowing the test fixture to be cleaned up.
A copy constructor declared private to prevent its use.
A copy operator declared private to prevent its use.
None.