mockpp::VisitableMockObject 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::VisitableMockObject:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 VisitableMockObject (const String &name, VerifiableList *parent=0)
 Construct the item.
virtual ~VisitableMockObject ()
 Destruct the item.
virtual void verify ()
 Verify that the expected and actual values are equal.
virtual void reset ()
 Sets all internal objects to the state after construction.

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 values and exceptions.

Definition at line 140 of file VisitableMockObject.h.


Constructor & Destructor Documentation

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

Construct the item.

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

Definition at line 125 of file VisitableMockObject.cpp.


Member Function Documentation

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

Verify that the expected and actual values are equal.

If it fails, an AssertionFailedError is thrown

Reimplemented from mockpp::MockObject.

Definition at line 137 of file VisitableMockObject.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