summaryrefslogtreecommitdiff
path: root/examples/cppunittest/TestDecoratorTest.h
blob: 7a098c9d5ff4d7462be6cfa7158139b91edf0053 (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
33
34
35
36
37
38
39
#ifndef TESTDECORATORTEST_H
#define TESTDECORATORTEST_H

#include <cppunit/extensions/HelperMacros.h>
#include <cppunit/extensions/TestDecorator.h>
#include "MockTestCase.h"


class TestDecoratorTest : public CPPUNIT_NS::TestFixture
{
  CPPUNIT_TEST_SUITE( TestDecoratorTest );
  CPPUNIT_TEST( testCountTestCases );
  CPPUNIT_TEST( testRun );
  CPPUNIT_TEST( testGetName );
  CPPUNIT_TEST_SUITE_END();

public:
  TestDecoratorTest();
  virtual ~TestDecoratorTest();

  virtual void setUp();
  virtual void tearDown();

  void testCountTestCases();
  void testRun();
  void testGetName();

private:
  TestDecoratorTest( const TestDecoratorTest &copy );
  void operator =( const TestDecoratorTest &copy );

private:
  MockTestCase *m_test;
  CPPUNIT_NS::TestDecorator *m_decorator;
};



#endif  // TESTDECORATORTEST_H