mockpp::ChainableMockObject Class Reference
[Advanced Mock Objects]

A generic object that can be used to replace a real world object for testing purposes. More...

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

List of all members.

Public Member Functions

 ChainableMockObject (const String &name, VerifiableList *parent=0)
 Construct the item.
virtual ~ChainableMockObject ()
 Destruct the item.
virtual void verify ()
 Verifies the object and the mock objects it contains.
virtual void reset ()
 Frees all internal data.

Detailed Description

A generic object that can be used to replace a real world object for testing purposes.

It emulates the real world behaviour by feeding it "chained expectations".

Definition at line 147 of file ChainableMockObject.h.


Constructor & Destructor Documentation

mockpp::ChainableMockObject::ChainableMockObject ( const String name,
VerifiableList parent = 0 
)

Construct the item.

Parameters:
name human readable description about the object
parent parent verifiable

Definition at line 151 of file ChainableMockObject.cpp.


Member Function Documentation

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

Verifies the object and the mock objects it contains.

If it fails, an AssertionFailedError is thrown

Reimplemented from mockpp::MockObject.

Definition at line 164 of file ChainableMockObject.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:12 2010 for mockpp by  doxygen 1.6.1