CppUnit project page | FAQ | CppUnit home page |
#include <TestFailure.h>
Collaboration diagram for CppUnit::TestFailure:
Public Methods | |
TestFailure (Test *failedTest, Exception *thrownException) | |
Constructs a TestFailure with the given test and exception. More... | |
virtual | ~TestFailure () |
Deletes the owned exception. More... | |
Test * | failedTest () |
Gets the failed test. More... | |
Exception * | thrownException () |
Gets the thrown exception. More... | |
std::string | toString () const |
Returns a short description of the failure. More... | |
Protected Attributes | |
Test * | m_failedTest |
Exception * | m_thrownException |
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 thrown exception.
|
|
Returns a short description of the failure.
|
|
|
|
|
|
hosts this site. |
Send comments to: CppUnit Developers |