1#ifndef CPPUNIT_EXTENSIONS_EXCEPTIONTESTCASEDECORATOR_H
2#define CPPUNIT_EXTENSIONS_EXCEPTIONTESTCASEDECORATOR_H
43template<
class ExpectedException>
79#if CPPUNIT_USE_TYPEINFO_NAME
81 "expected exception not thrown",
82 "Expected exception type: " +
83 TypeInfoHelper::getClassName(
#define CPPUNIT_NS_END
Definition Portability.h:120
#define CPPUNIT_NS_BEGIN
Definition Portability.h:119
Exceptions thrown by failed assertions.
Definition Exception.h:20
ExceptionTestCaseDecorator(TestCase *test)
Decorates the specified test.
Definition ExceptionTestCaseDecorator.h:52
void runTest()
Checks that the expected exception is thrown by the decorated test. is thrown.
Definition ExceptionTestCaseDecorator.h:65
ExpectedException ExpectedExceptionType
Definition ExceptionTestCaseDecorator.h:47
virtual void checkException(ExpectedExceptionType &e)
Called when the exception is caught.
Definition ExceptionTestCaseDecorator.h:95
Message associated to an Exception.A message is composed of two items:
Definition Message.h:39
TestCaseDecorator(TestCase *test)
Definition TestCaseDecorator.cpp:6
void runTest()
FIXME: this should probably be pure virtual.
Definition TestCaseDecorator.cpp:41
TestCase(const std::string &name)
Constructs a test case.
Definition TestCase.cpp:45