Blame include/cppunit/extensions/TestCaseDecorator.h
|
Packit Service |
e31359 |
#ifndef CPPUNIT_EXTENSIONS_TESTCASEDECORATOR_H
|
|
Packit Service |
e31359 |
#define CPPUNIT_EXTENSIONS_TESTCASEDECORATOR_H
|
|
Packit Service |
e31359 |
|
|
Packit Service |
e31359 |
#include <cppunit/Portability.h>
|
|
Packit Service |
e31359 |
#include <cppunit/TestCase.h>
|
|
Packit Service |
e31359 |
|
|
Packit Service |
e31359 |
CPPUNIT_NS_BEGIN
|
|
Packit Service |
e31359 |
|
|
Packit Service |
e31359 |
|
|
Packit Service |
e31359 |
/*! \brief Decorator for Test cases.
|
|
Packit Service |
e31359 |
*
|
|
Packit Service |
e31359 |
* TestCaseDecorator provides an alternate means to extend functionality
|
|
Packit Service |
e31359 |
* of a test class without subclassing the test. Instead, one can
|
|
Packit Service |
e31359 |
* subclass the decorater and use it to wrap the test class.
|
|
Packit Service |
e31359 |
*
|
|
Packit Service |
e31359 |
* Assumes ownership of the test it decorates
|
|
Packit Service |
e31359 |
*/
|
|
Packit Service |
e31359 |
class CPPUNIT_API TestCaseDecorator : public TestCase
|
|
Packit Service |
e31359 |
{
|
|
Packit Service |
e31359 |
public:
|
|
Packit Service |
e31359 |
TestCaseDecorator( TestCase *test );
|
|
Packit Service |
e31359 |
~TestCaseDecorator();
|
|
Packit Service |
e31359 |
|
|
Packit Service |
e31359 |
std::string getName() const;
|
|
Packit Service |
e31359 |
|
|
Packit Service |
e31359 |
void setUp();
|
|
Packit Service |
e31359 |
|
|
Packit Service |
e31359 |
void tearDown();
|
|
Packit Service |
e31359 |
|
|
Packit Service |
e31359 |
void runTest();
|
|
Packit Service |
e31359 |
|
|
Packit Service |
e31359 |
protected:
|
|
Packit Service |
e31359 |
TestCase *m_test;
|
|
Packit Service |
e31359 |
|
|
Packit Service |
e31359 |
private:
|
|
Packit Service |
e31359 |
|
|
Packit Service |
e31359 |
//prevent the creation of copy c'tor and operator=
|
|
Packit Service |
e31359 |
TestCaseDecorator( const TestCaseDecorator& );
|
|
Packit Service |
e31359 |
TestCaseDecorator& operator=( const TestCaseDecorator& );
|
|
Packit Service |
e31359 |
|
|
Packit Service |
e31359 |
};
|
|
Packit Service |
e31359 |
|
|
Packit Service |
e31359 |
|
|
Packit Service |
e31359 |
CPPUNIT_NS_END
|
|
Packit Service |
e31359 |
|
|
Packit Service |
e31359 |
#endif
|
|
Packit Service |
e31359 |
|