#ifndef CPPUNIT_EXTENSIONS_TESTSETUP_H #define CPPUNIT_EXTENSIONS_TESTSETUP_H #include namespace CppUnit { class Test; class TestResult; class TestSetUp : public TestDecorator { public: TestSetUp (Test *test) : TestDecorator (test) {} void run (TestResult *result); protected: virtual void setUp () {} virtual void tearDown () {} private: TestSetUp( const TestSetUp & ); void operator =( const TestSetUp & ); }; inline void TestSetUp::run (TestResult *result) { setUp (); TestDecorator::run (result); tearDown (); } } // namespace CppUnit #endif // CPPUNIT_EXTENSIONS_TESTSETUP_H