CppUnit project page FAQ

TestCaseDecorator.h
Go to the documentation of this file.
1#ifndef CPPUNIT_EXTENSIONS_TESTCASEDECORATOR_H
2#define CPPUNIT_EXTENSIONS_TESTCASEDECORATOR_H
3
5#include <cppunit/TestCase.h>
6
8
9
19{
20public:
23
24 std::string getName() const;
25
26 void setUp();
27
28 void tearDown();
29
30 void runTest();
31
32protected:
34
35private:
36
37 //prevent the creation of copy c'tor and operator=
40
41};
42
43
45
46#endif
47
#define CPPUNIT_API
Definition: CppUnitApi.h:27
#define CPPUNIT_NS_END
Definition: Portability.h:106
#define CPPUNIT_NS_BEGIN
Definition: Portability.h:105
Decorator for Test cases.
Definition: TestCaseDecorator.h:19
TestCaseDecorator(const TestCaseDecorator &)
TestCaseDecorator & operator=(const TestCaseDecorator &)
TestCase * m_test
Definition: TestCaseDecorator.h:33
A single test object.
Definition: TestCase.h:29
std::string getName() const
Returns the name of the test case.
Definition: TestCase.cpp:131
virtual void runTest()
FIXME: this should probably be pure virtual.
Definition: TestCase.cpp:105
virtual void setUp()
Set up context before running a test.
Definition: TestFixture.h:89
virtual void tearDown()
Clean up after the test run.
Definition: TestFixture.h:92

Send comments to:
CppUnit Developers