summaryrefslogtreecommitdiff
path: root/examples/cppunittest/TestCallerTest.h
diff options
context:
space:
mode:
authorBaptiste Lepilleur <gaiacrtn@free.fr>2001-06-11 18:56:23 +0000
committerBaptiste Lepilleur <gaiacrtn@free.fr>2001-06-11 18:56:23 +0000
commit0c5051a8acf83fd77a6094177eb0711d3f90d997 (patch)
treea0757b1cae952576f4497d40ccf3aa70a2bf84c8 /examples/cppunittest/TestCallerTest.h
parent021d0a2611777a06d948735e0ad36cb90ffd413b (diff)
downloadcppunit-0c5051a8acf83fd77a6094177eb0711d3f90d997.tar.gz
Examples/cppunittest/TestResultTest.
examples/cppunittest/TestResultTest.*: renamed TestListenerTest.* * examples/cppunittest/*: added unit tests for: HelperMacros, TestAssert, TestCaller, TestCase, TestFailure, TestResult, TestSuite, TestDecoratorTest, TestSetUp, RepeatedTestTest, Orthodox, Exception.
Diffstat (limited to 'examples/cppunittest/TestCallerTest.h')
-rw-r--r--examples/cppunittest/TestCallerTest.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/examples/cppunittest/TestCallerTest.h b/examples/cppunittest/TestCallerTest.h
index 6579d42..e317716 100644
--- a/examples/cppunittest/TestCallerTest.h
+++ b/examples/cppunittest/TestCallerTest.h
@@ -10,12 +10,7 @@ class TestCallerTest : public CppUnit::TestCase,
Tracker
{
public:
- /*! Constructs a TestCallerTest object.
- */
TestCallerTest();
-
- /*! Destructor.
- */
virtual ~TestCallerTest();
static CppUnit::TestSuite *suite();
@@ -27,7 +22,17 @@ public:
void testReferenceConstructor();
void testPointerConstructor();
+ void testExpectFailureException();
+ void testExpectException();
+
private:
+ class ExceptionThrower : public CppUnit::TestCase
+ {
+ public:
+ void testThrowFailureException();
+ void testThrowException();
+ };
+
virtual void onConstructor();
virtual void onDestructor();
virtual void onSetUp();
@@ -38,10 +43,7 @@ private:
void checkRunningSequenceCalled();
void checkTestName( std::string testName );
- /// Prevents the use of the copy constructor.
TestCallerTest( const TestCallerTest &copy );
-
- /// Prevents the use of the copy operator.
void operator =( const TestCallerTest &copy );
private: