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/ExceptionTest.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/ExceptionTest.h')
-rw-r--r-- | examples/cppunittest/ExceptionTest.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/examples/cppunittest/ExceptionTest.h b/examples/cppunittest/ExceptionTest.h new file mode 100644 index 0000000..bc177e1 --- /dev/null +++ b/examples/cppunittest/ExceptionTest.h @@ -0,0 +1,43 @@ +#ifndef EXCEPTIONTEST_H +#define EXCEPTIONTEST_H + +#include <cppunit/extensions/HelperMacros.h> + + +class ExceptionTest : public CppUnit::TestCase +{ + CPPUNIT_TEST_SUITE( ExceptionTest ); + CPPUNIT_TEST( testConstructor ); + CPPUNIT_TEST( testDefaultConstructor ); + CPPUNIT_TEST( testCopyConstructor ); + CPPUNIT_TEST( testAssignment ); + CPPUNIT_TEST( testClone ); + CPPUNIT_TEST( testIsInstanceOf ); + CPPUNIT_TEST_SUITE_END(); + +public: + ExceptionTest(); + virtual ~ExceptionTest(); + + virtual void setUp(); + virtual void tearDown(); + + void testConstructor(); + void testDefaultConstructor(); + void testCopyConstructor(); + void testAssignment(); + void testClone(); + void testIsInstanceOf(); + +private: + ExceptionTest( const ExceptionTest © ); + void operator =( const ExceptionTest © ); + void checkIsSame( CppUnit::Exception &e, + CppUnit::Exception &other ); + +private: +}; + + + +#endif // EXCEPTIONTEST_H |