CppUnit project page FAQ

TestCase.h
Go to the documentation of this file.
1#ifndef CPPUNIT_TESTCASE_H
2#define CPPUNIT_TESTCASE_H
3
5#include <cppunit/TestLeaf.h>
8#include <string>
9
10
12
13
14class TestResult;
15
16
28 public TestFixture
29{
30public:
31
32 TestCase( const std::string &name );
33
34 TestCase();
35
36 ~TestCase();
37
38 virtual void run(TestResult *result);
39
40 std::string getName() const;
41
43 virtual void runTest();
44
45private:
46 TestCase( const TestCase &other );
47 TestCase &operator=( const TestCase &other );
48
49private:
50 const std::string m_name;
51};
52
54
55#endif // CPPUNIT_TESTCASE_H
#define CPPUNIT_API
Definition: CppUnitApi.h:27
#define CPPUNIT_NS_END
Definition: Portability.h:106
#define CPPUNIT_NS_BEGIN
Definition: Portability.h:105
A single test object.
Definition: TestCase.h:29
TestCase & operator=(const TestCase &other)
TestCase(const TestCase &other)
const std::string m_name
Definition: TestCase.h:50
Wraps a test case with setUp and tearDown methods.
Definition: TestFixture.h:84
virtual std::string getName() const =0
Returns the test name.
virtual void run(TestResult *result)=0
Run the test, collecting results.
A single test object.
Definition: TestLeaf.h:16
Manages TestListener.
Definition: TestResult.h:48

Send comments to:
CppUnit Developers