forked from blytkerchan/cppunit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSubclassedTestCase.h
More file actions
35 lines (24 loc) · 774 Bytes
/
SubclassedTestCase.h
File metadata and controls
35 lines (24 loc) · 774 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef SUBCLASSEDTESTCASE_H
#define SUBCLASSEDTESTCASE_H
#include "BaseTestCase.h"
class SubclassedTestCase : public BaseTestCase
{
CPPUNIT_TEST_SUB_SUITE( SubclassedTestCase, BaseTestCase );
CPPUNIT_TEST( testSubclassing );
CPPUNIT_TEST_SUITE_END();
public:
SubclassedTestCase();
virtual ~SubclassedTestCase();
virtual void setUp();
virtual void tearDown();
// Another test to ensure the subclassed test case are in the suite .
void testSubclassing();
protected:
// We overload this method to ensure that the testUsingCheckIt in the
// parent class will fail.
virtual void checkIt();
private:
SubclassedTestCase( const SubclassedTestCase © );
void operator =( const SubclassedTestCase © );
};
#endif // SUBCLASSEDTESTCASE_H