TestSetUp.h 590 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef CPPUNIT_EXTENSIONS_TESTSETUP_H
  2. #define CPPUNIT_EXTENSIONS_TESTSETUP_H
  3. #include <cppunit/extensions/TestDecorator.h>
  4. CPPUNIT_NS_BEGIN
  5. class Test;
  6. class TestResult;
  7. /*! \brief Decorates a test by providing a specific setUp() and tearDown().
  8. */
  9. class CPPUNIT_API TestSetUp : public TestDecorator
  10. {
  11. public:
  12. TestSetUp( Test *test );
  13. void run( TestResult *result );
  14. protected:
  15. virtual void setUp();
  16. virtual void tearDown();
  17. private:
  18. TestSetUp( const TestSetUp & );
  19. void operator =( const TestSetUp & );
  20. };
  21. CPPUNIT_NS_END
  22. #endif // CPPUNIT_EXTENSIONS_TESTSETUP_H