1 #ifndef EXCEPTIONTEST_H 2 #define EXCEPTIONTEST_H 3 4 #include <cppunit/extensions/HelperMacros.h> 5 6 7 class ExceptionTest : public CPPUNIT_NS::TestFixture 8 { 9 CPPUNIT_TEST_SUITE( ExceptionTest ); 10 CPPUNIT_TEST( testConstructor ); 11 CPPUNIT_TEST( testDefaultConstructor ); 12 CPPUNIT_TEST( testCopyConstructor ); 13 CPPUNIT_TEST( testAssignment ); 14 CPPUNIT_TEST( testClone ); 15 CPPUNIT_TEST_SUITE_END(); 16 17 public: 18 ExceptionTest(); 19 virtual ~ExceptionTest(); 20 21 virtual void setUp(); 22 virtual void tearDown(); 23 24 void testConstructor(); 25 void testDefaultConstructor(); 26 void testCopyConstructor(); 27 void testAssignment(); 28 void testClone(); 29 30 private: 31 ExceptionTest( const ExceptionTest © ); 32 void operator =( const ExceptionTest © ); 33 void checkIsSame( CPPUNIT_NS::Exception &e, 34 CPPUNIT_NS::Exception &other ); 35 36 private: 37 }; 38 39 40 41 #endif // EXCEPTIONTEST_H 42