summaryrefslogtreecommitdiff
path: root/examples/cppunittest/ExceptionTest.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/cppunittest/ExceptionTest.h')
-rw-r--r--examples/cppunittest/ExceptionTest.h43
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 &copy );
+ void operator =( const ExceptionTest &copy );
+ void checkIsSame( CppUnit::Exception &e,
+ CppUnit::Exception &other );
+
+private:
+};
+
+
+
+#endif // EXCEPTIONTEST_H