CppUnit project page | FAQ |
00001 #ifndef CPPUNIT_EXTENSIONS_TESTCASEDECORATOR_H 00002 #define CPPUNIT_EXTENSIONS_TESTCASEDECORATOR_H 00003 00004 #include <cppunit/Portability.h> 00005 #include <cppunit/TestCase.h> 00006 00007 CPPUNIT_NS_BEGIN 00008 00009 00018 class CPPUNIT_API TestCaseDecorator : public TestCase 00019 { 00020 public: 00021 TestCaseDecorator( TestCase *test ); 00022 ~TestCaseDecorator(); 00023 00024 std::string getName() const; 00025 00026 void setUp(); 00027 00028 void tearDown(); 00029 00030 void runTest(); 00031 00032 protected: 00033 TestCase *m_test; 00034 00035 private: 00036 00037 //prevent the creation of copy c'tor and operator= 00038 TestCaseDecorator( const TestCaseDecorator& ); 00039 TestCaseDecorator& operator=( const TestCaseDecorator& ); 00040 00041 }; 00042 00043 00044 CPPUNIT_NS_END 00045 00046 #endif 00047
Send comments to: CppUnit Developers |