TestFailure |
The class TestFailure (see Figure C-22) summarizes the failure of a Test . The failure may be due to an assertion failure or an error. An error is defined as any exception that isn't an assertion failure.
TestFailure belongs to the namespace CppUnit . It is declared in TestFailure.h and is implemented in TestFailure.cpp .
class TestFailure
A constructor taking the Test that failed, the Exception that was thrown, and a flag indicating whether the failure was an assertion failure or an error.
A destructor.
Returns a copy of this TestFailure .
Returns the failed Test .
Returns the name of the failed Test .
Returns TRUE if the TestFailure is due to an error and not to an assertion failure.
Returns the SourceLine for this TestFailure .
Returns the Exception associated with this TestFailure .
Returns a string representation of this TestFailure .
A copy constructor declared private to prevent its use.
A copy operator declared private to prevent its use.
The failed Test ( protected ).
Returns TRUE if the TestFailure is due to an error, FALSE if it is due to an assertion failure ( protected ).
The Exception associated with this TestFailure ( protected ).