diff options
| author | Baptiste Lepilleur <gaiacrtn@free.fr> | 2001-06-11 19:00:52 +0000 |
|---|---|---|
| committer | Baptiste Lepilleur <gaiacrtn@free.fr> | 2001-06-11 19:00:52 +0000 |
| commit | da8e822d28d281276f4cef78b7e7c7f2660de232 (patch) | |
| tree | cc9e6073f27fd8e8754f237acb8cfb34dececea9 /include/cppunit/TestCase.h | |
| parent | e38eb47e23d6106c32ee136351b0080313339270 (diff) | |
| download | cppunit-da8e822d28d281276f4cef78b7e7c7f2660de232.tar.gz | |
Include/cppunit/Exception.
include/cppunit/Exception.h: now inherit from std::exception instead
of ::exception. Added clone(), type(), and isInstanceOf()
methods for subclassing support. Changed UNKNOWNLINENUMBER type to long
for consistence with lineNumber().
* include/cppunit/NotEqualException.h: addded, exception to be used
with assertEquals().
* include/cppunit/TestAssert.h: changed TestAssert into a namespace
instead of a class. This remove the need of template member methods
and does not cause compiler internal error on VC++.
Macro CPPUNIT_ASSERT_MESSAGE has been added to fail test with
a specified message.
* include/cppunit/TestCaller.h: added "Expected exception" support.
Based on Tim Jansen patch (#403745), but use a traits instead of RTTI
to distingh between "No expected exception" and "Excepted exception".
Exception type name is reported using RTTI if CPPUNIT_USE_TYPEINFO is
defined.
Diffstat (limited to 'include/cppunit/TestCase.h')
| -rw-r--r-- | include/cppunit/TestCase.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/cppunit/TestCase.h b/include/cppunit/TestCase.h index e27ba31..dc85e7a 100644 --- a/include/cppunit/TestCase.h +++ b/include/cppunit/TestCase.h @@ -79,8 +79,7 @@ namespace CppUnit { * */ - class TestCase : public Test, - public TestAssert + class TestCase : public Test { public: TestCase (); |
