1
#ifndef CPPUNIT_TESTFAILURE_H // -*- C++ -*-
2
#define CPPUNIT_TESTFAILURE_H
4
#include <cppunit/Portability.h>
15
/*! \brief Record of a failed Test execution.
16
* \ingroup BrowsingCollectedTestResult
18
* A TestFailure collects a failed test together with
19
* the caught exception.
21
* TestFailure assumes lifetime control for any exception
24
class CPPUNIT_API TestFailure
27
TestFailure( Test *failedTest,
28
Exception *thrownException,
31
virtual ~TestFailure ();
33
virtual Test *failedTest() const;
35
virtual Exception *thrownException() const;
37
virtual SourceLine sourceLine() const;
39
virtual bool isError() const;
41
virtual std::string failedTestName() const;
43
virtual TestFailure *clone() const;
47
Exception *m_thrownException;
51
TestFailure( const TestFailure &other );
52
TestFailure &operator =( const TestFailure& other );
58
#endif // CPPUNIT_TESTFAILURE_H