summaryrefslogtreecommitdiff
path: root/include/cppunit/TestCase.h
diff options
context:
space:
mode:
authorSteve M. Robbins <smr@sumost.ca>2001-09-16 18:27:02 +0000
committerSteve M. Robbins <smr@sumost.ca>2001-09-16 18:27:02 +0000
commit4d8f4e24048feecd5d630bff4e6c6c1883ac2402 (patch)
treecabcb8ec8626f42396ba75f46ba80bc6861a6c02 /include/cppunit/TestCase.h
parent4e18414e298bbf0855c99c0549a2883b9b614031 (diff)
downloadcppunit-4d8f4e24048feecd5d630bff4e6c6c1883ac2402.tar.gz
Revert TestFixture-related changes from 2001-07-15.
Diffstat (limited to 'include/cppunit/TestCase.h')
-rw-r--r--include/cppunit/TestCase.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/include/cppunit/TestCase.h b/include/cppunit/TestCase.h
index e8767f9..1c2ee53 100644
--- a/include/cppunit/TestCase.h
+++ b/include/cppunit/TestCase.h
@@ -4,7 +4,6 @@
#include <cppunit/Portability.h>
#include <cppunit/Test.h>
#include <cppunit/TestAssert.h>
-#include <cppunit/TestFixture.h>
#include <string>
@@ -13,15 +12,14 @@ namespace CppUnit {
class TestResult;
+/* FIXME: most of this documentation belongs to proposed class Fixture.
+ */
+
/*! \brief A single test object.
*
* This class is used to implement a simple test case: define a subclass
* that overrides the runTest method.
*
- */
-
-/* FIXME: this documentation belongs to proposed class Fixture.
- *
* A test case defines the fixture to run multiple tests.
* To define a test case
* do the following:
@@ -91,7 +89,7 @@ class TestResult;
*
*/
-class TestCase : public Test, public TestFixture
+class TestCase : public Test
{
public:
@@ -108,6 +106,10 @@ public:
//! FIXME: what is this for?
virtual TestResult *run ();
+ // FIXME: move back to class TestFixture, in future.
+ virtual void setUp ();
+ virtual void tearDown ();
+
protected:
//! FIXME: this should probably be pure virtual.