| CppUnit project page | FAQ | 
TestListener that checks if any test case failed. More...
#include <TestSuccessListener.h>


| Public Member Functions | |
| TestSuccessListener (SynchronizationObject *syncObject=0) | |
| virtual | ~TestSuccessListener () | 
| Destructor.  More... | |
| virtual void | reset () | 
| void | addFailure (const TestFailure &failure) | 
| Called when a failure occurs while running a test.  More... | |
| virtual bool | wasSuccessful () const | 
| Returns whether the entire test was successful or not.  More... | |
|  Public Member Functions inherited from TestListener | |
| virtual | ~TestListener () | 
| virtual void | startTest (Test *) | 
| Called when just before a TestCase is run.  More... | |
| virtual void | endTest (Test *) | 
| Called just after a TestCase was run (even if a failure occured).  More... | |
| virtual void | startSuite (Test *) | 
| Called by a TestComposite just before running its child tests.  More... | |
| virtual void | endSuite (Test *) | 
| Called by a TestComposite after running its child tests.  More... | |
| virtual void | startTestRun (Test *, TestResult *) | 
| Called by a TestRunner before running the test.  More... | |
| virtual void | endTestRun (Test *, TestResult *) | 
| Called by a TestRunner after running the test.  More... | |
|  Public Member Functions inherited from SynchronizedObject | |
| SynchronizedObject (SynchronizationObject *syncObject=0) | |
| virtual | ~SynchronizedObject () | 
| Destructor.  More... | |
| Private Attributes | |
| bool | m_success | 
| Additional Inherited Members | |
|  Protected Member Functions inherited from SynchronizedObject | |
| virtual void | setSynchronizationObject (SynchronizationObject *syncObject) | 
| Accept a new synchronization object for protection of this instance TestResult assumes ownership of the object.  More... | |
|  Protected Attributes inherited from SynchronizedObject | |
| SynchronizationObject * | m_syncObject | 
TestListener that checks if any test case failed.
| CPPUNIT_NS_BEGIN TestSuccessListener::TestSuccessListener | ( | SynchronizationObject * | syncObject = 0 | ) | 
Constructs a TestSuccessListener object.
| 
 | virtual | 
Destructor.
| 
 | virtual | 
Called when a failure occurs while running a test.
Reimplemented from TestListener.
Reimplemented in TextTestResult.
| 
 | virtual | 
Reimplemented in TestResultCollector.
| 
 | virtual | 
Returns whether the entire test was successful or not.
| 
 | private | 
| Send comments to: CppUnit Developers |