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
#define CPPUNIT_API
Definition: CppUnitApi.h:27
#define CPPUNIT_NS_END
Definition: Portability.h:106
#define CPPUNIT_NS_BEGIN
Definition: Portability.h:105
Wraps a test case with setUp and tearDown methods.
Definition: TestFixture.h:84
virtual void setUp()
Set up context before running a test.
Definition: TestFixture.h:89
virtual ~TestFixture()
Definition: TestFixture.h:86
virtual void tearDown()
Clean up after the test run.
Definition: TestFixture.h:92

Send comments to:
CppUnit Developers