CppUnit project page | FAQ

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

TestFixture.h
Go to the documentation of this file.
1 #ifndef CPPUNIT_TESTFIXTURE_H // -*- C++ -*-
2 #define CPPUNIT_TESTFIXTURE_H
3
4 #include <cppunit/Portability.h>
5
6 CPPUNIT_NS_BEGIN
7
8
83 class CPPUNIT_API TestFixture
84 {
85 public:
86 virtual ~TestFixture() {};
87
89 virtual void setUp() {};
90
92 virtual void tearDown() {};
93 };
94
95
96 CPPUNIT_NS_END
97
98
99 #endif
TestFixture
Wraps a test case with setUp and tearDown methods.A TestFixture is used to provide a common environme...
Definition: TestFixture.h:83
Portability.h
TestFixture::tearDown
virtual void tearDown()
Clean up after the test run.
Definition: TestFixture.h:92
CPPUNIT_NS_END
#define CPPUNIT_NS_END
Definition: Portability.h:120
CPPUNIT_NS_BEGIN
#define CPPUNIT_NS_BEGIN
Definition: Portability.h:119
TestFixture::setUp
virtual void setUp()
Set up context before running a test.
Definition: TestFixture.h:89
TestFixture::~TestFixture
virtual ~TestFixture()
Definition: TestFixture.h:86
CPPUNIT_API
#define CPPUNIT_API
Definition: CppUnitApi.h:27

| Send comments to: CppUnit Developers