Record of a failed Test execution.A TestFailure collects a failed test together with the caught exception.
More...
#include <TestFailure.h>
List of all members.
Detailed Description
Record of a failed Test execution.
A TestFailure collects a failed test together with the caught exception.
TestFailure assumes lifetime control for any exception passed to it.
Constructor & Destructor Documentation
CPPUNIT_NS_BEGIN TestFailure::TestFailure |
( |
Test * |
failedTest, |
|
|
Exception * |
thrownException, |
|
|
bool |
isError | |
|
) |
| | |
Constructs a TestFailure with the given test and exception.
TestFailure::~TestFailure |
( |
|
) |
[virtual] |
Deletes the owned exception.
TestFailure::TestFailure |
( |
const TestFailure & |
other |
) |
[private] |
Member Function Documentation
Test * TestFailure::failedTest |
( |
|
) |
const [virtual] |
std::string TestFailure::failedTestName |
( |
|
) |
const [virtual] |
Gets the name of the failed test.
bool TestFailure::isError |
( |
|
) |
const [virtual] |
Indicates if the failure is a failed assertion or an error.
SourceLine TestFailure::sourceLine |
( |
|
) |
const [virtual] |
Gets the failure location.
Exception * TestFailure::thrownException |
( |
|
) |
const [virtual] |
Gets the thrown exception. Never NULL
.
Member Data Documentation
The documentation for this class was generated from the following files: