CppUnit project page FAQ

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 
7 
8 
84 {
85 public:
86  virtual ~TestFixture() {};
87 
89  virtual void setUp() {};
90 
92  virtual void tearDown() {};
93 };
94 
95 
97 
98 
99 #endif
Wraps a test case with setUp and tearDown methods.A TestFixture is used to provide a common environme...
Definition: TestFixture.h:83
virtual void tearDown()
Clean up after the test run.
Definition: TestFixture.h:92
#define CPPUNIT_NS_END
Definition: Portability.h:120
#define CPPUNIT_NS_BEGIN
Definition: Portability.h:119
virtual void setUp()
Set up context before running a test.
Definition: TestFixture.h:89
virtual ~TestFixture()
Definition: TestFixture.h:86
#define CPPUNIT_API
Definition: CppUnitApi.h:27

Send comments to:
CppUnit Developers