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
TestCaseDecorator(const TestCaseDecorator &)
TestCaseDecorator(TestCase *test)
Definition TestCaseDecorator.cpp:6
TestCaseDecorator & operator=(const TestCaseDecorator &)
TestCase * m_test
Definition TestCaseDecorator.h:33
void runTest()
FIXME: this should probably be pure virtual.
Definition TestCaseDecorator.cpp:41
void tearDown()
Clean up after the test run.
Definition TestCaseDecorator.cpp:34
void setUp()
Set up context before running a test.
Definition TestCaseDecorator.cpp:27
std::string getName() const
Returns the name of the test case.
Definition TestCaseDecorator.cpp:20
TestCase(const std::string &name)
Constructs a test case.
Definition TestCase.cpp:45

Send comments to:
CppUnit Developers