CppUnit project page | FAQ | CppUnit home page |
#include <TestFailure.h>
Public Methods | |
TestFailure (Test *failedTest, Exception *thrownException, bool isError) | |
Constructs a TestFailure with the given test and exception. More... | |
virtual | ~TestFailure () |
Deletes the owned exception. More... | |
virtual Test * | failedTest () const |
Gets the failed test. More... | |
virtual Exception * | thrownException () const |
Gets the thrown exception. Never NULL . More... | |
virtual SourceLine | sourceLine () const |
Gets the failure location. More... | |
virtual bool | isError () const |
Indicates if the failure is a failed assertion or an error. More... | |
virtual std::string | failedTestName () const |
Gets the name of the failed test. More... | |
virtual std::string | toString () const |
Returns a short description of the failure. More... | |
virtual TestFailure * | clone () const |
Protected Attributes | |
Test * | m_failedTest |
Exception * | m_thrownException |
bool | m_isError |
Private Methods | |
TestFailure (const TestFailure &other) | |
TestFailure & | operator= (const TestFailure &other) |
A TestFailure collects a failed test together with the caught exception.
TestFailure assumes lifetime control for any exception passed to it.
|
Constructs a TestFailure with the given test and exception.
|
|
Deletes the owned exception.
|
|
|
|
|
|
Gets the failed test.
|
|
Gets the name of the failed test.
|
|
Indicates if the failure is a failed assertion or an error.
|
|
|
|
Gets the failure location.
|
|
Gets the thrown exception. Never
|
|
Returns a short description of the failure.
|
|
|
|
|
|
|
hosts this site. |
Send comments to: CppUnit Developers |