mockpp::VerifyingTestCase Class Reference
[Support for test frameworks.Basic Mock ObjectsAdvanced Mock Objects]

TestCase that verifies Verifiable fields and registered Verifiable objects after the test has run and before the fixture has been torn down. More...

Inheritance diagram for mockpp::VerifyingTestCase:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 VerifyingTestCase ()
 Constructs the test case.
 VerifyingTestCase (const MOCKPP_STD_NS::string &name)
 Constructs the test case.
virtual ~VerifyingTestCase ()
 Constructs the test case.
virtual void verify ()
 Verifies the object and the mock objects it contains.
virtual void unregisterVerifiables ()
 Removes all verifiable fields from the list.

Protected Member Functions

void registerVerifiable (AutoPointer< Verifiable > verifiable)
 Registers another verifiable object to the list.

Detailed Description

TestCase that verifies Verifiable fields and registered Verifiable objects after the test has run and before the fixture has been torn down.

Definition at line 58 of file VerifyingTestCase.h.


Constructor & Destructor Documentation

mockpp::VerifyingTestCase::VerifyingTestCase ( const MOCKPP_STD_NS::string &  name  ) 

Constructs the test case.

Parameters:
name test case name

Definition at line 61 of file VerifyingTestCase.cpp.


Member Function Documentation

void mockpp::VerifyingTestCase::registerVerifiable ( AutoPointer< Verifiable verifiable  )  [protected]

Registers another verifiable object to the list.

Parameters:
verifiable pointer to the verifiable object

Definition at line 92 of file VerifyingTestCase.cpp.

void mockpp::VerifyingTestCase::verify (  )  [virtual]

Verifies the object and the mock objects it contains.

Attention:
Having no sub-objetcs to verify also counts as an error because it is assumed that registration of the objects had been forgotten. Otherwise there would be no reason to use this class. If it fails, an AssertionFailedError is thrown

Reimplemented from mockpp::MockObject.

Definition at line 78 of file VerifyingTestCase.cpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Friends Defines

Generated on Tue Jan 5 09:49:18 2010 for mockpp by  doxygen 1.6.1