CppUnit project page FAQ CppUnit home page

Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

CppUnit::TestFailure Class Reference

Record of a failed test execution. More...

#include <TestFailure.h>

Collaboration diagram for CppUnit::TestFailure:

Collaboration graph
[legend]
List of all members.

Public Methods

 TestFailure (Test *failedTest, Exception *thrownException)
 Constructs a TestFailure with the given test and exception. More...

virtual ~TestFailure ()
 Deletes the owned exception. More...

TestfailedTest ()
 Gets the failed test. More...

ExceptionthrownException ()
 Gets the thrown exception. More...

std::string toString () const
 Returns a short description of the failure. More...


Protected Attributes

Testm_failedTest
Exceptionm_thrownException

Private Methods

 TestFailure (const TestFailure &other)
TestFailure & operator= (const TestFailure &other)

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::TestFailure::TestFailure Test *   failedTest,
Exception *   thrownException
 

Constructs a TestFailure with the given test and exception.

CppUnit::TestFailure::~TestFailure   [virtual]
 

Deletes the owned exception.

CppUnit::TestFailure::TestFailure const TestFailure &   other [private]
 


Member Function Documentation

Test * CppUnit::TestFailure::failedTest   [inline]
 

Gets the failed test.

TestFailure& CppUnit::TestFailure::operator= const TestFailure &   other [private]
 

Exception * CppUnit::TestFailure::thrownException   [inline]
 

Gets the thrown exception.

std::string CppUnit::TestFailure::toString   const
 

Returns a short description of the failure.


Member Data Documentation

Test* CppUnit::TestFailure::m_failedTest [protected]
 

Exception* CppUnit::TestFailure::m_thrownException [protected]
 


The documentation for this class was generated from the following files:
SourceForge Logo hosts this site. Send comments to:
CppUnit Developers