Set up visitable mock method expectations with 1 parameters. More...

Public Member Functions | |
| VisitableMockMethod1 (const String &name, VisitableMockObject *parent) | |
| Constructs the mock object. | |
| R | forward (const P1 &p1) const |
| Actually verifies the mocked method. | |
| void | addResponseValue (const R &rv, const P1 &p1, unsigned count=MOCKPP_UNLIMITED) |
| Adds another response value. | |
| void | addResponseValue (const R &rv, const ConstraintHolder< P1 > &p1, unsigned count=MOCKPP_UNLIMITED) |
| Adds another response value. | |
Set up visitable mock method expectations with 1 parameters.
Definition at line 151 of file VisitableMockMethod1.h.
| mockpp::VisitableMockMethod1< R, P1 >::VisitableMockMethod1 | ( | const String & | name, | |
| VisitableMockObject * | parent | |||
| ) | [inline] |
Constructs the mock object.
| name | human readable description about the expectation | |
| parent | parent Visitable mock object |
Definition at line 160 of file VisitableMockMethod1.h.
| void mockpp::VisitableMockMethod1< R, P1 >::addResponseValue | ( | const R & | rv, | |
| const ConstraintHolder< P1 > & | p1, | |||
| unsigned | count = MOCKPP_UNLIMITED | |||
| ) | [inline] |
Adds another response value.
Response values are determined on the parameters you pass. This way the object returns a value that is totally based on the input.
| rv | the return value | |
| p1 | mock method parameter 1 | |
| count | the number of times this value shall be returned. Default is unlimited. |
Definition at line 218 of file VisitableMockMethod1.h.
| void mockpp::VisitableMockMethod1< R, P1 >::addResponseValue | ( | const R & | rv, | |
| const P1 & | p1, | |||
| unsigned | count = MOCKPP_UNLIMITED | |||
| ) | [inline] |
Adds another response value.
Response values are determined on the parameters you pass. This way the object returns a value that is totally based on the input.
| rv | the return value | |
| p1 | mock method parameter 1 | |
| count | the number of times this value shall be returned. Default is unlimited. |
Definition at line 205 of file VisitableMockMethod1.h.
| R mockpp::VisitableMockMethod1< R, P1 >::forward | ( | const P1 & | p1 | ) | const [inline] |
Actually verifies the mocked method.
Must be called by the client code.
| p1 | mock method parameter 1 |
Definition at line 170 of file VisitableMockMethod1.h.
1.6.1