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  

TestFailure.h

Go to the documentation of this file.
00001 #ifndef CPPUNIT_TESTFAILURE_H    // -*- C++ -*-
00002 #define CPPUNIT_TESTFAILURE_H
00003 
00004 #include <string>
00005 
00006 namespace CppUnit {
00007 
00008 class Test;
00009 class Exception;
00010 
00011 
00020 class TestFailure 
00021 {
00022 public:
00023     TestFailure (Test *failedTest, Exception *thrownException);
00024     virtual ~TestFailure ();
00025 
00026     Test*        failedTest ();
00027 
00028     Exception*   thrownException ();
00029     
00030     std::string  toString () const;
00031 
00032 protected:
00033     Test         *m_failedTest;
00034     Exception    *m_thrownException;
00035 
00036 private: 
00037     TestFailure (const TestFailure& other); 
00038     TestFailure& operator= (const TestFailure& other); 
00039 };
00040 
00042 inline Test *TestFailure::failedTest ()
00043 { return m_failedTest; }
00044 
00045 
00047 inline Exception *TestFailure::thrownException ()
00048 { return m_thrownException; }
00049 
00050 
00051 } // namespace CppUnit
00052 
00053 #endif // CPPUNIT_TESTFAILURE_H

SourceForge Logo hosts this site. Send comments to:
CppUnit Developers