diff options
Diffstat (limited to 'include/cppunit/TestCase.h')
| -rw-r--r-- | include/cppunit/TestCase.h | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/include/cppunit/TestCase.h b/include/cppunit/TestCase.h index f9cb1d9..0d319dc 100644 --- a/include/cppunit/TestCase.h +++ b/include/cppunit/TestCase.h @@ -2,7 +2,7 @@ #define CPPUNIT_TESTCASE_H #include <cppunit/Portability.h> -#include <cppunit/Test.h> +#include <cppunit/TestLeaf.h> #include <cppunit/TestAssert.h> #include <cppunit/TestFixture.h> #include <string> @@ -23,30 +23,24 @@ class TestResult; * You are expected to subclass TestCase is you need to write a class similiar * to TestCaller. */ -class CPPUNIT_API TestCase : public Test, +class CPPUNIT_API TestCase : public TestLeaf, public TestFixture { public: - TestCase( std::string Name ); - //! \internal + TestCase( const std::string &name ); + TestCase(); + ~TestCase(); virtual void run(TestResult *result); - virtual int countTestCases() const; + std::string getName() const; - std::string toString() const; - //! FIXME: what is this for? - virtual TestResult *run(); - protected: //! FIXME: this should probably be pure virtual. virtual void runTest(); - - //! Create TestResult for the run(void) method. - TestResult *defaultResult(); private: TestCase( const TestCase &other ); |
