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

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. | |
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.
| mockpp::ChainableMockObject::ChainableMockObject | ( | const String & | name, | |
| VerifiableList * | parent = 0 | |||
| ) |
Construct the item.
| name | human readable description about the object | |
| parent | parent verifiable |
Definition at line 151 of file ChainableMockObject.cpp.
| 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.
1.6.1