Common stuff to set up visitable mock method expectations with 6 parameters. More...
Public Member Functions | |
VisitableMockMethod6Common (const String &name, VisitableMockObject *parent) | |
Constructs the mock object. | |
void | forward (const ConstraintHolder< P1 > &p1, const ConstraintHolder< P2 > &p2, const ConstraintHolder< P3 > &p3, const ConstraintHolder< P4 > &p4, const ConstraintHolder< P5 > &p5, const ConstraintHolder< P6 > &p6) const |
Set up expectations with constraints. | |
void | addResponseThrowable (Throwable *t, const P1 &p1, const P2 &p2, const P3 &p3, const P4 &p4, const P5 &p5, const P6 &p6, unsigned count=MOCKPP_UNLIMITED) |
Adds another response throwable. | |
void | addResponseThrowable (Throwable *t, const ConstraintHolder< P1 > &p1, const ConstraintHolder< P2 > &p2, const ConstraintHolder< P3 > &p3, const ConstraintHolder< P4 > &p4, const ConstraintHolder< P5 > &p5, const ConstraintHolder< P6 > &p6, unsigned count=MOCKPP_UNLIMITED) |
Adds another response throwable. | |
Protected Member Functions | |
void | forward_param (const P1 &p1, const P2 &p2, const P3 &p3, const P4 &p4, const P5 &p5, const P6 &p6) const |
Perform the internals to verify a mocked method or setup expectations. |
Common stuff to set up visitable mock method expectations with 6 parameters.
Definition at line 48 of file VisitableMockMethod6.h.
mockpp::VisitableMockMethod6Common< R, P1, P2, P3, P4, P5, P6 >::VisitableMockMethod6Common | ( | 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 56 of file VisitableMockMethod6.h.
void mockpp::VisitableMockMethod6Common< R, P1, P2, P3, P4, P5, P6 >::addResponseThrowable | ( | Throwable * | t, | |
const ConstraintHolder< P1 > & | p1, | |||
const ConstraintHolder< P2 > & | p2, | |||
const ConstraintHolder< P3 > & | p3, | |||
const ConstraintHolder< P4 > & | p4, | |||
const ConstraintHolder< P5 > & | p5, | |||
const ConstraintHolder< P6 > & | p6, | |||
unsigned | count = MOCKPP_UNLIMITED | |||
) | [inline] |
Adds another response throwable.
Response values are determined on the parameters you pass. This way the object returns a value that is totally based on the input.
t | the throwable object | |
p1 | mock method parameter 1 | |
p2 | mock method parameter 2 | |
p3 | mock method parameter 3 | |
p4 | mock method parameter 4 | |
p5 | mock method parameter 5 | |
p6 | mock method parameter 6 | |
count | the number of times this value shall be returned. Default is unlimited. |
Definition at line 178 of file VisitableMockMethod6.h.
void mockpp::VisitableMockMethod6Common< R, P1, P2, P3, P4, P5, P6 >::addResponseThrowable | ( | Throwable * | t, | |
const P1 & | p1, | |||
const P2 & | p2, | |||
const P3 & | p3, | |||
const P4 & | p4, | |||
const P5 & | p5, | |||
const P6 & | p6, | |||
unsigned | count = MOCKPP_UNLIMITED | |||
) | [inline] |
Adds another response throwable.
Response values are determined on the parameters you pass. This way the object returns a value that is totally based on the input.
t | the throwable object | |
p1 | mock method parameter 1 | |
p2 | mock method parameter 2 | |
p3 | mock method parameter 3 | |
p4 | mock method parameter 4 | |
p5 | mock method parameter 5 | |
p6 | mock method parameter 6 | |
count | the number of times this value shall be returned. Default is unlimited. |
Definition at line 160 of file VisitableMockMethod6.h.
void mockpp::VisitableMockMethod6Common< R, P1, P2, P3, P4, P5, P6 >::forward | ( | const ConstraintHolder< P1 > & | p1, | |
const ConstraintHolder< P2 > & | p2, | |||
const ConstraintHolder< P3 > & | p3, | |||
const ConstraintHolder< P4 > & | p4, | |||
const ConstraintHolder< P5 > & | p5, | |||
const ConstraintHolder< P6 > & | p6 | |||
) | const [inline] |
Set up expectations with constraints.
p1 | mock method parameter 1 | |
p2 | mock method parameter 2 | |
p3 | mock method parameter 3 | |
p4 | mock method parameter 4 | |
p5 | mock method parameter 5 | |
p6 | mock method parameter 6 |
Definition at line 77 of file VisitableMockMethod6.h.
void mockpp::VisitableMockMethod6Common< R, P1, P2, P3, P4, P5, P6 >::forward_param | ( | const P1 & | p1, | |
const P2 & | p2, | |||
const P3 & | p3, | |||
const P4 & | p4, | |||
const P5 & | p5, | |||
const P6 & | p6 | |||
) | const [inline, protected] |
Perform the internals to verify a mocked method or setup expectations.
p1 | mock method parameter 1 | |
p2 | mock method parameter 2 | |
p3 | mock method parameter 3 | |
p4 | mock method parameter 4 | |
p5 | mock method parameter 5 | |
p6 | mock method parameter 6 |
Definition at line 100 of file VisitableMockMethod6.h.