1 #ifndef HELPERMACROSTEST_H
2 #define HELPERMACROSTEST_H
3 
4 #include <cppunit/extensions/HelperMacros.h>
5 #include "MockTestListener.h"
6 
7 
8 class HelperMacrosTest : public CPPUNIT_NS::TestFixture
9 {
10   CPPUNIT_TEST_SUITE( HelperMacrosTest );
11   CPPUNIT_TEST( testNoSubclassing );
12   CPPUNIT_TEST( testSubclassing );
13   CPPUNIT_TEST( testFail );
14   CPPUNIT_TEST( testFailToFail );
15   CPPUNIT_TEST( testException );
16   CPPUNIT_TEST( testExceptionNotCaught );
17   CPPUNIT_TEST( testCustomTests );
18   CPPUNIT_TEST( testAddTest );
19   CPPUNIT_TEST( testParameterizedTests );
20   CPPUNIT_TEST_SUITE_END();
21 
22 public:
23   HelperMacrosTest();
24   virtual ~HelperMacrosTest();
25 
26   virtual void setUp();
27   virtual void tearDown();
28 
29   void testNoSubclassing();
30 
31   void testSubclassing();
32 
33   void testFail();
34   void testFailToFail();
35 
36   void testException();
37   void testExceptionNotCaught();
38 
39   void testCustomTest();
40   void testCustomTests();
41   void testAddTest();
42 
43   void testParameterizedTests();
44 
45 private:
46   HelperMacrosTest( const HelperMacrosTest &copy );
47   void operator =( const HelperMacrosTest &copy );
48 
49 private:
50   CPPUNIT_NS::TestResult *m_result;
51   MockTestListener *m_testListener;
52 };
53 
54 
55 
56 #endif  // HELPERMACROSTEST_H
57