1#ifndef CPPUNIT_TESTFAILURE_H
2#define CPPUNIT_TESTFAILURE_H
#define CPPUNIT_API
Definition CppUnitApi.h:27
#define CPPUNIT_NS_END
Definition Portability.h:106
#define CPPUNIT_NS_BEGIN
Definition Portability.h:105
Exceptions thrown by failed assertions.
Definition Exception.h:20
Represents a source line location.
Definition SourceLine.h:31
TestFailure(Test *failedTest, Exception *thrownException, bool isError)
Constructs a TestFailure with the given test and exception.
Definition TestFailure.cpp:9
virtual bool isError() const
Indicates if the failure is a failed assertion or an error.
Definition TestFailure.cpp:50
virtual SourceLine sourceLine() const
Gets the failure location.
Definition TestFailure.cpp:42
Test * m_failedTest
Definition TestFailure.h:46
virtual std::string failedTestName() const
Gets the name of the failed test.
Definition TestFailure.cpp:58
virtual Exception * thrownException() const
Gets the thrown exception. Never NULL.
Definition TestFailure.cpp:34
virtual Test * failedTest() const
Gets the failed test.
Definition TestFailure.cpp:26
Exception * m_thrownException
Definition TestFailure.h:47
bool m_isError
Definition TestFailure.h:48
TestFailure(const TestFailure &other)
virtual TestFailure * clone() const
Definition TestFailure.cpp:65
Base class for all test objects.
Definition Test.h:26