1 #ifndef CPPUNIT_EXTENSIONS_TESTDECORATOR_H
2 #define CPPUNIT_EXTENSIONS_TESTDECORATOR_H
4 #include <cppunit/Portability.h>
5 #include <cppunit/Test.h>
13 /*! \brief Decorator for Tests.
15 * TestDecorator provides an alternate means to extend functionality
16 * of a test class without subclassing the test. Instead, one can
17 * subclass the decorater and use it to wrap the test class.
19 * Does not assume ownership of the test it decorates
21 class CPPUNIT_API TestDecorator : public Test
24 TestDecorator( Test *test );
27 int countTestCases() const;
29 std::string getName() const;
31 void run( TestResult *result );
33 int getChildTestCount() const;
36 Test *doGetChildTestAt( int index ) const;
41 TestDecorator( const TestDecorator &);
42 void operator =( const TestDecorator & );