1 #ifndef TESTDECORATORTEST_H 2 #define TESTDECORATORTEST_H 3 4 #include <cppunit/extensions/HelperMacros.h> 5 #include <cppunit/extensions/TestDecorator.h> 6 #include "MockTestCase.h" 7 8 9 class TestDecoratorTest : public CPPUNIT_NS::TestFixture 10 { 11 CPPUNIT_TEST_SUITE( TestDecoratorTest ); 12 CPPUNIT_TEST( testCountTestCases ); 13 CPPUNIT_TEST( testRun ); 14 CPPUNIT_TEST( testGetName ); 15 CPPUNIT_TEST_SUITE_END(); 16 17 public: 18 TestDecoratorTest(); 19 virtual ~TestDecoratorTest(); 20 21 virtual void setUp(); 22 virtual void tearDown(); 23 24 void testCountTestCases(); 25 void testRun(); 26 void testGetName(); 27 28 private: 29 TestDecoratorTest( const TestDecoratorTest © ); 30 void operator =( const TestDecoratorTest © ); 31 32 private: 33 MockTestCase *m_test; 34 CPPUNIT_NS::TestDecorator *m_decorator; 35 }; 36 37 38 39 #endif // TESTDECORATORTEST_H 40