mockpp::MockObject Class Reference
[Basic Mock ObjectsAdvanced Mock Objects]

Base class for setting up mock objcts that are able to emulate a real world object. More...

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

List of all members.

Public Member Functions

 MockObject (const String &name, VerifiableList *parent=0)
 Constructs the mock object.
void notImplemented ()
 Throws a NotImplementedException with the actual objects typeid().
virtual void verify ()
 Verifies the object and the mock objects it contains.
virtual void reset ()
 Sets all internal objects to the state after construction.

Detailed Description

Base class for setting up mock objcts that are able to emulate a real world object.

warning: One MockObject should never have another MockObject as child! Otherwise there might be collisons when verify()-ing the objects.

Definition at line 52 of file MockObject.h.


Constructor & Destructor Documentation

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

Constructs the mock object.

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

Definition at line 44 of file MockObject.cpp.


Member Function Documentation

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

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:00 2010 for mockpp by  doxygen 1.6.1