diff options
author | Baptiste Lepilleur <gaiacrtn@free.fr> | 2001-06-11 18:56:23 +0000 |
---|---|---|
committer | Baptiste Lepilleur <gaiacrtn@free.fr> | 2001-06-11 18:56:23 +0000 |
commit | 0c5051a8acf83fd77a6094177eb0711d3f90d997 (patch) | |
tree | a0757b1cae952576f4497d40ccf3aa70a2bf84c8 /examples/cppunittest/TestDecoratorTest.h | |
parent | 021d0a2611777a06d948735e0ad36cb90ffd413b (diff) | |
download | cppunit-0c5051a8acf83fd77a6094177eb0711d3f90d997.tar.gz |
Examples/cppunittest/TestResultTest.
examples/cppunittest/TestResultTest.*: renamed TestListenerTest.*
* examples/cppunittest/*: added unit tests for:
HelperMacros, TestAssert, TestCaller, TestCase, TestFailure,
TestResult, TestSuite, TestDecoratorTest, TestSetUp, RepeatedTestTest,
Orthodox, Exception.
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 |