CppUnit project page FAQ CppUnit home page

Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class 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:

Inheritance graph
[legend]
Collaboration diagram for CppUnit::TestSucessListener:

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

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


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, and CppUnit::TextTestResult.

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