summaryrefslogtreecommitdiff
path: root/src/cppunit/TestCaseDecorator.cpp
blob: 4fb8f80d93c73ae1f1030aa478a5b08773b98b2a (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
40
41
42
43
44
45
46
47
#include <cppunit/extensions/TestCaseDecorator.h>

CPPUNIT_NS_BEGIN


TestCaseDecorator::TestCaseDecorator( TestCase *test )
    : m_test( test )
    , TestCase( test->getName() )
{ 
}


TestCaseDecorator::~TestCaseDecorator()
{
  delete m_test;
}


std::string 
TestCaseDecorator::getName() const
{ 
  return m_test->getName(); 
}


void 
TestCaseDecorator::setUp()
{
  m_test->setUp();
}


void 
TestCaseDecorator::tearDown()
{
  m_test->tearDown();
}


void 
TestCaseDecorator::runTest()
{
  m_test->runTest();
}


CPPUNIT_NS_END