summaryrefslogtreecommitdiff
path: root/examples/cppunittest/BaseTestCase.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/cppunittest/BaseTestCase.h')
-rw-r--r--examples/cppunittest/BaseTestCase.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/examples/cppunittest/BaseTestCase.h b/examples/cppunittest/BaseTestCase.h
new file mode 100644
index 0000000..86f069f
--- /dev/null
+++ b/examples/cppunittest/BaseTestCase.h
@@ -0,0 +1,32 @@
+#ifndef BASETESTCASE_H
+#define BASETESTCASE_H
+
+#include <cppunit/extensions/HelperMacros.h>
+
+
+class BaseTestCase : public CppUnit::TestCase
+{
+ CPPUNIT_TEST_SUITE( BaseTestCase );
+ CPPUNIT_TEST( testUsingCheckIt );
+ CPPUNIT_TEST_SUITE_END();
+
+public:
+ BaseTestCase();
+ virtual ~BaseTestCase();
+
+ virtual void setUp();
+ virtual void tearDown();
+
+ void testUsingCheckIt();
+
+protected:
+ virtual void checkIt();
+
+private:
+ BaseTestCase( const BaseTestCase &copy );
+ void operator =( const BaseTestCase &copy );
+};
+
+
+
+#endif // BASETESTCASE_H