A generic object that can be used to replace a real world object for testing purposes. More...
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. |
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.
mockpp::VisitableMockObject::VisitableMockObject | ( | const String & | name, | |
VerifiableList * | parent = 0 | |||
) |
Construct the item.
name | human readable description about the object | |
parent | parent verifiable |
Definition at line 125 of file VisitableMockObject.cpp.
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.