November 2004
Intermediate to advanced
212 pages
5h 2m
English
TestSucessListener
The class
TestSucessListener
(see Figure C-30) is a
subclass of TestListener and
SynchronizedObject. It indicates whether the
Test it observes has succeeded. If the
TestResult includes a failure, the
Test is not successful.
TestSucessListener belongs to the namespace
CppUnit. It is declared in the file
TestSucessListener.h and implemented in the file
TestSucessListener.cpp.
![]() |
class TestSucessListener : public TestListener, public SynchronizedObject
TestSucessListener(SynchronizationObject *syncObject = 0)
A constructor. If syncObject is
null, a new
SynchronizationObject is created.
virtual ~TestSucessListener( )
A destructor.
void addFailure(const TestFailure &failure)
A method to report a TestFailure to the
TestSucessListener. Sets
m_sucess to FALSE.
virtual void reset( )
Resets m_sucess to TRUE.
virtual bool wasSuccessful( ) const
Returns value of m_sucess.
None.
bool m_sucess
A test success indicator; TRUE unless there is a
failure (private).
Read now
Unlock full access