A collection of verifiable objects which are verify()ed together. More...

Public Member Functions | |
| VerifiableList (const String &name, VerifiableList *parent) | |
| Constructs the expectation. | |
Protected Member Functions | |
| virtual void | addVerifiable (Verifiable *vf) |
| Adds another verifiable object to the list. | |
| void | removeVerifiable (Verifiable *vf) |
| Removes a verifiable object from the list. | |
| bool | hasVerifiable (Verifiable *vf) const |
| Tests of a verifiable object is in the list. | |
| virtual unsigned | numVerifiables () const |
| Gets the number of verifiable sub-objects in the list. | |
| virtual Verifiable * | getVerifiable (unsigned idx) |
| Gets a pointer to a verifiable sub-object. | |
| virtual void | clearVerifiables () |
| Removes all verifiable fields from the list. | |
Friends | |
| class | Verifier |
| Throws an AssertionFailedException if any expectations have not been met. | |
| class | Verifiable |
A collection of verifiable objects which are verify()ed together.
Definition at line 47 of file VerifiableList.h.
| mockpp::VerifiableList::VerifiableList | ( | const String & | name, | |
| VerifiableList * | parent | |||
| ) |
Constructs the expectation.
| name | human readable description about the expectation | |
| parent | parent verifiable |
Definition at line 44 of file VerifiableList.cpp.
| void mockpp::VerifiableList::addVerifiable | ( | Verifiable * | vf | ) | [protected, virtual] |
Adds another verifiable object to the list.
| vf | pointer to the verifiable object |
Definition at line 50 of file VerifiableList.cpp.
| Verifiable * mockpp::VerifiableList::getVerifiable | ( | unsigned | idx | ) | [protected, virtual] |
Gets a pointer to a verifiable sub-object.
| idx | index of object in the list |
Reimplemented from mockpp::Verifiable.
Definition at line 87 of file VerifiableList.cpp.
| bool mockpp::VerifiableList::hasVerifiable | ( | Verifiable * | vf | ) | const [protected] |
Tests of a verifiable object is in the list.
| vf | pointer to the verifiable object |
Definition at line 67 of file VerifiableList.cpp.
| unsigned mockpp::VerifiableList::numVerifiables | ( | ) | const [protected, virtual] |
Gets the number of verifiable sub-objects in the list.
Reimplemented from mockpp::Verifiable.
Definition at line 75 of file VerifiableList.cpp.
| void mockpp::VerifiableList::removeVerifiable | ( | Verifiable * | vf | ) | [protected] |
Removes a verifiable object from the list.
| vf | pointer to the verifiable object |
Definition at line 57 of file VerifiableList.cpp.
1.6.1