CppUnit project page FAQ CppUnit home page

Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

CppUnit::TestSucessListener Class Reference
[Tracking test execution]

TestListener that checks if any test case failed. More...

#include <TestSucessListener.h>

Inheritance diagram for CppUnit::TestSucessListener:

CppUnit::TestListener CppUnit::SynchronizedObject CppUnit::TestResultCollector CppUnit::TextTestResult List of all members.

Public Methods

 TestSucessListener (SynchronizationObject *syncObject=0)
virtual ~TestSucessListener ()
 Destructor. More...

virtual void reset ()
void addFailure (const TestFailure &failure)
virtual bool wasSuccessful () const
 Returns whether the entire test was successful or not. More...


Private Attributes

bool m_sucess

Detailed Description

TestListener that checks if any test case failed.


Constructor & Destructor Documentation

CppUnit::TestSucessListener::TestSucessListener SynchronizationObject *    syncObject = 0
 

Constructs a TestSucessListener object.

CppUnit::TestSucessListener::~TestSucessListener   [virtual]
 

Destructor.


Member Function Documentation

void CppUnit::TestSucessListener::addFailure const TestFailure   failure [virtual]
 

Called when a failure occurs while running a test.

See also:
TestFailure.
Warning:
failure is a temporary object that is destroyed after the method call. Use TestFailure::clone() to create a duplicate.

Reimplemented from CppUnit::TestListener.

Reimplemented in CppUnit::TestResultCollector.

void CppUnit::TestSucessListener::reset   [virtual]
 

Reimplemented in CppUnit::TestResultCollector.

bool CppUnit::TestSucessListener::wasSuccessful   const [virtual]
 

Returns whether the entire test was successful or not.


Member Data Documentation

bool CppUnit::TestSucessListener::m_sucess [private]
 


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