CppUnit project page FAQ CppUnit home page

TestCaseDecorator.h
Go to the documentation of this file.
1 #ifndef CPPUNIT_EXTENSIONS_TESTCASEDECORATOR_H
2 #define CPPUNIT_EXTENSIONS_TESTCASEDECORATOR_H
3 
4 #include <cppunit/Portability.h>
5 #include <cppunit/TestCase.h>
6 
8 
9 
19 {
20 public:
21  TestCaseDecorator( TestCase *test );
23 
24  std::string getName() const;
25 
26  void setUp();
27 
28  void tearDown();
29 
30  void runTest();
31 
32  virtual bool filter(const Filter& f) { return m_test->filter(f); }
33 
34 protected:
36 };
37 
38 
40 
41 #endif
42 
std::string getName() const
Returns the name of the test case.
Definition: TestCase.cpp:131
virtual void tearDown()
Clean up after the test run.
Definition: TestFixture.h:92
TestCase * m_test
Definition: TestCaseDecorator.h:35
#define CPPUNIT_NS_END
Definition: Portability.h:120
virtual void runTest()
FIXME: this should probably be pure virtual.
Definition: TestCase.cpp:105
#define CPPUNIT_NS_BEGIN
Definition: Portability.h:119
virtual void setUp()
Set up context before running a test.
Definition: TestFixture.h:89
Use this filter to only run some of the registered tests.
Definition: Test.h:114
A single test object.
Definition: TestCase.h:27
virtual bool filter(const Filter &f)
Definition: TestCaseDecorator.h:32
Decorator for Test cases.
Definition: TestCaseDecorator.h:18
#define CPPUNIT_API
Definition: CppUnitApi.h:27

SourceForge Logo hosts this site. Send comments to:
CppUnit Developers