diff options
Diffstat (limited to 'examples/cppunittest/TestDecoratorTest.h')
-rw-r--r-- | examples/cppunittest/TestDecoratorTest.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/examples/cppunittest/TestDecoratorTest.h b/examples/cppunittest/TestDecoratorTest.h new file mode 100644 index 0000000..b795afd --- /dev/null +++ b/examples/cppunittest/TestDecoratorTest.h @@ -0,0 +1,39 @@ +#ifndef TESTDECORATORTEST_H +#define TESTDECORATORTEST_H + +#include <cppunit/extensions/HelperMacros.h> +#include <cppunit/extensions/TestDecorator.h> +class FailingTestCase; + + +class TestDecoratorTest : public CppUnit::TestCase +{ + CPPUNIT_TEST_SUITE( TestDecoratorTest ); + CPPUNIT_TEST( testCountTestCases ); + CPPUNIT_TEST( testRun ); + CPPUNIT_TEST( testGetName ); + CPPUNIT_TEST_SUITE_END(); + +public: + TestDecoratorTest(); + virtual ~TestDecoratorTest(); + + virtual void setUp(); + virtual void tearDown(); + + void testCountTestCases(); + void testRun(); + void testGetName(); + +private: + TestDecoratorTest( const TestDecoratorTest © ); + void operator =( const TestDecoratorTest © ); + +private: + CppUnit::Test *m_decorator; + FailingTestCase *m_test; +}; + + + +#endif // TESTDECORATORTEST_H |