CppUnit project page | FAQ |
Decorates a test by providing a specific setUp() and tearDown(). More...
#include <TestSetUp.h>
Public Member Functions | |
TestSetUp (Test *test) | |
void | run (TestResult *result) |
Run the test, collecting results. | |
Public Member Functions inherited from TestDecorator | |
TestDecorator (Test *test) | |
~TestDecorator () | |
int | countTestCases () const |
Return the number of test cases invoked by run(). | |
std::string | getName () const |
Returns the test name. | |
int | getChildTestCount () const |
Returns the number of direct child of the test. | |
Public Member Functions inherited from Test | |
virtual | ~Test () |
virtual Test * | getChildTestAt (int index) const |
Returns the child test of the specified index. | |
virtual bool | findTestPath (const std::string &testName, TestPath &testPath) const |
Finds the test with the specified name and its parents test. | |
virtual bool | findTestPath (const Test *test, TestPath &testPath) const |
Finds the specified test and its parents test. | |
virtual Test * | findTest (const std::string &testName) const |
Finds the test with the specified name in the hierarchy. | |
virtual TestPath | resolveTestPath (const std::string &testPath) const |
Resolved the specified test path with this test acting as 'root'. |
Protected Member Functions | |
virtual void | setUp () |
virtual void | tearDown () |
Protected Member Functions inherited from TestDecorator | |
Test * | doGetChildTestAt (int index) const |
Returns the child test of the specified valid index. | |
Protected Member Functions inherited from Test | |
virtual void | checkIsValidIndex (int index) const |
Private Member Functions | |
TestSetUp (const TestSetUp &) | |
void | operator= (const TestSetUp &) |
Additional Inherited Members | |
Protected Attributes inherited from TestDecorator | |
Test * | m_test |
Decorates a test by providing a specific setUp() and tearDown().
CPPUNIT_NS_BEGIN TestSetUp::TestSetUp | ( | Test * | test | ) |
|
private |
|
private |
|
virtual |
Run the test, collecting results.
Reimplemented from TestDecorator.
|
protectedvirtual |
|
protectedvirtual |
Send comments to: CppUnit Developers |