Base class for expectation collections. More...
Public Member Functions | |
AbstractExpectationCollection (const String &name, VerifiableList *parent) | |
Constructs the expectation. | |
Protected Member Functions | |
virtual void | clearExpectation ()=0 |
Clears the the handling of an error. | |
virtual void | reset ()=0 |
Resets the internal state completely. | |
virtual void | checkImmediateValue (const T &actualItem) const =0 |
Checks if the actual value matches the expectation. |
Base class for expectation collections.
Definition at line 44 of file AbstractExpectationCollection.h.
mockpp::AbstractExpectationCollection< T >::AbstractExpectationCollection | ( | const String & | name, | |
VerifiableList * | parent | |||
) | [inline] |
Constructs the expectation.
name | human readable description about the expectation | |
parent | parent verifiable |
Definition at line 52 of file AbstractExpectationCollection.h.
virtual void mockpp::AbstractExpectationCollection< T >::checkImmediateValue | ( | const T & | actualItem | ) | const [protected, pure virtual] |
Checks if the actual value matches the expectation.
Note the semantics of the containers of the underlying container of descendants of this class.
Implemented in mockpp::ExpectationConglomeration< T >, mockpp::ExpectationList< T >, mockpp::ExpectationSet< T >, mockpp::ConstraintList< T >, mockpp::ExpectationList< std::string >, mockpp::ExpectationSet< Key >, mockpp::ConstraintList< P1 >, mockpp::ConstraintList< P2 >, mockpp::ConstraintList< P3 >, mockpp::ConstraintList< P4 >, mockpp::ConstraintList< P5 >, and mockpp::ConstraintList< P6 >.
virtual void mockpp::AbstractExpectationCollection< T >::clearExpectation | ( | ) | [protected, pure virtual] |
Clears the the handling of an error.
The Expectation will fail if any actual values are set.
Note that this is not the same as not setting any expectations, in which case verify() will do nothing.
Implemented in mockpp::ExpectationConglomeration< T >, mockpp::ExpectationList< T >, mockpp::ExpectationSet< T >, mockpp::ConstraintList< T >, mockpp::ExpectationList< std::string >, mockpp::ExpectationSet< Key >, mockpp::ConstraintList< P1 >, mockpp::ConstraintList< P2 >, mockpp::ConstraintList< P3 >, mockpp::ConstraintList< P4 >, mockpp::ConstraintList< P5 >, and mockpp::ConstraintList< P6 >.