1
#ifndef CPPUNIT_TESTCASE_H
2
#define CPPUNIT_TESTCASE_H
4
#include <cppunit/Portability.h>
5
#include <cppunit/TestLeaf.h>
6
#include <cppunit/TestAssert.h>
7
#include <cppunit/TestFixture.h>
17
/*! \brief A single test object.
19
* This class is used to implement a simple test case: define a subclass
20
* that overrides the runTest method.
22
* You don't usually need to use that class, but TestFixture and TestCaller instead.
24
* You are expected to subclass TestCase is you need to write a class similiar
27
class CPPUNIT_API TestCase : public TestLeaf,
32
TestCase( const std::string &name );
38
virtual void run(TestResult *result);
40
std::string getName() const;
42
//! FIXME: this should probably be pure virtual.
43
virtual void runTest();
46
TestCase( const TestCase &other );
47
TestCase &operator=( const TestCase &other );
50
const std::string m_name;
55
#endif // CPPUNIT_TESTCASE_H