mockpp::VisitableMockMethod6< R, P1, P2, P3, P4, P5, P6 > Class Template Reference
[Controlling behaviour of a Visitable Mock Object]

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

Inheritance diagram for mockpp::VisitableMockMethod6< R, P1, P2, P3, P4, P5, P6 >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 VisitableMockMethod6 (const String &name, VisitableMockObject *parent)
 Constructs the mock object.
forward (const P1 &p1, const P2 &p2, const P3 &p3, const P4 &p4, const P5 &p5, const P6 &p6) const
 Actually verifies the mocked method.
void addResponseValue (const R &rv, 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 value.
void addResponseValue (const R &rv, 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 value.

Detailed Description

template<typename R, typename P1, typename P2, typename P3, typename P4, typename P5, typename P6>
class mockpp::VisitableMockMethod6< R, P1, P2, P3, P4, P5, P6 >

Set up visitable mock method expectations with 6 parameters.

Definition at line 201 of file VisitableMockMethod6.h.


Constructor & Destructor Documentation

template<typename R , typename P1 , typename P2 , typename P3 , typename P4 , typename P5 , typename P6 >
mockpp::VisitableMockMethod6< R, P1, P2, P3, P4, P5, P6 >::VisitableMockMethod6 ( const String name,
VisitableMockObject parent 
) [inline]

Constructs the mock object.

Parameters:
name human readable description about the expectation
parent parent Visitable mock object

Definition at line 210 of file VisitableMockMethod6.h.


Member Function Documentation

template<typename R , typename P1 , typename P2 , typename P3 , typename P4 , typename P5 , typename P6 >
void mockpp::VisitableMockMethod6< R, P1, P2, P3, P4, P5, P6 >::addResponseValue ( const R &  rv,
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 value.

Response values are determined on the parameters you pass. This way the object returns a value that is totally based on the input.

Parameters:
rv the return value
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 288 of file VisitableMockMethod6.h.

template<typename R , typename P1 , typename P2 , typename P3 , typename P4 , typename P5 , typename P6 >
void mockpp::VisitableMockMethod6< R, P1, P2, P3, P4, P5, P6 >::addResponseValue ( const R &  rv,
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 value.

Response values are determined on the parameters you pass. This way the object returns a value that is totally based on the input.

Parameters:
rv the return value
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 270 of file VisitableMockMethod6.h.

template<typename R , typename P1 , typename P2 , typename P3 , typename P4 , typename P5 , typename P6 >
R mockpp::VisitableMockMethod6< R, P1, P2, P3, P4, P5, P6 >::forward ( const P1 &  p1,
const P2 &  p2,
const P3 &  p3,
const P4 &  p4,
const P5 &  p5,
const P6 &  p6 
) const [inline]

Actually verifies the mocked method.

Must be called by the client code.

Parameters:
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 225 of file VisitableMockMethod6.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Friends Defines

Generated on Tue Jan 5 09:49:18 2010 for mockpp by  doxygen 1.6.1