Imported Upstream version 2.81
[platform/upstream/libbullet.git] / UnitTests / cppunit / src / cppunit / TestCaseDecorator.cpp
1 #include <cppunit/extensions/TestCaseDecorator.h>
2
3 CPPUNIT_NS_BEGIN
4
5
6 TestCaseDecorator::TestCaseDecorator( TestCase *test )
7     : TestCase( test->getName() ),
8       m_test( test )
9
10 }
11
12
13 TestCaseDecorator::~TestCaseDecorator()
14 {
15   delete m_test;
16 }
17
18
19 std::string 
20 TestCaseDecorator::getName() const
21
22   return m_test->getName(); 
23 }
24
25
26 void 
27 TestCaseDecorator::setUp()
28 {
29   m_test->setUp();
30 }
31
32
33 void 
34 TestCaseDecorator::tearDown()
35 {
36   m_test->tearDown();
37 }
38
39
40 void 
41 TestCaseDecorator::runTest()
42 {
43   m_test->runTest();
44 }
45
46
47 CPPUNIT_NS_END