Go to the documentation of this file. 1 #ifndef CPPUNIT_EXTENSIONS_EXCEPTIONTESTCASEDECORATOR_H
2 #define CPPUNIT_EXTENSIONS_EXCEPTIONTESTCASEDECORATOR_H
43 template<
class ExpectedException>
79 #if defined(CPPUNIT_USE_TYPEINFO_NAME)
81 "expected exception not thrown",
82 "Expected exception type: " +
103 #endif // CPPUNIT_EXTENSIONS_EXCEPTIONTESTCASEDECORATOR_H
Expected exception test case decorator.
Definition: ExceptionTestCaseDecorator.h:44
void runTest()
Checks that the expected exception is thrown by the decorated test. is thrown.
Definition: ExceptionTestCaseDecorator.h:65
void runTest()
FIXME: this should probably be pure virtual.
Definition: TestCaseDecorator.cpp:41
ExceptionTestCaseDecorator(TestCase *test)
Decorates the specified test.
Definition: ExceptionTestCaseDecorator.h:52
Exceptions thrown by failed assertions.
Definition: Exception.h:19
Message associated to an Exception.
Definition: Message.h:34
virtual void checkException(ExpectedExceptionType &)
Called when the exception is caught.
Definition: ExceptionTestCaseDecorator.h:95
Decorator for Test cases.
Definition: TestCaseDecorator.h:18
static std::string getClassName(const std::type_info &info)
Get the class name of the specified type_info.
Definition: TypeInfoHelper.cpp:15
A single test object.
Definition: TestCase.h:27
#define CPPUNIT_NS_BEGIN
Definition: Portability.h:105
#define CPPUNIT_NS_END
Definition: Portability.h:106
ExpectedException ExpectedExceptionType
Definition: ExceptionTestCaseDecorator.h:47