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