summaryrefslogtreecommitdiff
path: root/examples/cppunittest/BaseTestCase.h
blob: 019ed66df870765aa0ecf37b69c4efa3ae779e23 (plain)
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 &copy );
  void operator =( const BaseTestCase &copy );
};



#endif  // BASETESTCASE_H