CppUnit project page | FAQ | CppUnit home page |
Decorator for Test cases. More...
#include <TestCaseDecorator.h>
Public Member Functions | |
TestCaseDecorator (TestCase *test) | |
~TestCaseDecorator () | |
std::string | getName () const |
Returns the name of the test case. | |
void | setUp () |
Set up context before running a test. | |
void | tearDown () |
Clean up after the test run. | |
void | runTest () |
FIXME: this should probably be pure virtual. | |
Protected Attributes | |
TestCase * | m_test |
Decorator for Test cases.
TestCaseDecorator provides an alternate means to extend functionality of a test class without subclassing the test. Instead, one can subclass the decorater and use it to wrap the test class.
Does not assume ownership of the test it decorates
CPPUNIT_NS_BEGIN TestCaseDecorator::TestCaseDecorator | ( | TestCase * | test | ) |
TestCaseDecorator::~TestCaseDecorator | ( | ) |
std::string TestCaseDecorator::getName | ( | ) | const [virtual] |
Returns the name of the test case.
Reimplemented from TestCase.
void TestCaseDecorator::runTest | ( | ) | [virtual] |
FIXME: this should probably be pure virtual.
All the work for runTest is deferred to subclasses.
Reimplemented from TestCase.
Reimplemented in ExceptionTestCaseDecorator< ExpectedException >.
void TestCaseDecorator::setUp | ( | ) | [virtual] |
Set up context before running a test.
Reimplemented from TestFixture.
void TestCaseDecorator::tearDown | ( | ) | [virtual] |
Clean up after the test run.
Reimplemented from TestFixture.
TestCase* TestCaseDecorator::m_test [protected] |
|
hosts this site. |
Send comments to: CppUnit Developers |