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
|
#ifndef BASETESTCASE_H
#define BASETESTCASE_H
#include <cppunit/extensions/HelperMacros.h>
class BaseTestCase : public CPPUNIT_NS::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 © );
void operator =( const BaseTestCase © );
};
#endif // BASETESTCASE_H
|