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

Common stuff to set up visitable mock method expectations with 4 parameters. More...

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

List of all members.

Public Member Functions

 VisitableMockMethod4Common (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
 Set up expectations with constraints.
void addResponseThrowable (Throwable *t, const P1 &p1, const P2 &p2, const P3 &p3, const P4 &p4, 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, 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
 Perform the internals to verify a mocked method or setup expectations.

Detailed Description

template<typename R, typename P1, typename P2, typename P3, typename P4>
class mockpp::VisitableMockMethod4Common< R, P1, P2, P3, P4 >

Common stuff to set up visitable mock method expectations with 4 parameters.

Definition at line 48 of file VisitableMockMethod4.h.


Constructor & Destructor Documentation

template<typename R, typename P1, typename P2, typename P3, typename P4>
mockpp::VisitableMockMethod4Common< R, P1, P2, P3, P4 >::VisitableMockMethod4Common ( 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 56 of file VisitableMockMethod4.h.


Member Function Documentation

template<typename R, typename P1, typename P2, typename P3, typename P4>
void mockpp::VisitableMockMethod4Common< R, P1, P2, P3, P4 >::addResponseThrowable ( Throwable t,
const ConstraintHolder< P1 > &  p1,
const ConstraintHolder< P2 > &  p2,
const ConstraintHolder< P3 > &  p3,
const ConstraintHolder< P4 > &  p4,
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.

Parameters:
t the throwable object
p1 mock method parameter 1
p2 mock method parameter 2
p3 mock method parameter 3
p4 mock method parameter 4
count the number of times this value shall be returned. Default is unlimited.

Definition at line 160 of file VisitableMockMethod4.h.

template<typename R, typename P1, typename P2, typename P3, typename P4>
void mockpp::VisitableMockMethod4Common< R, P1, P2, P3, P4 >::addResponseThrowable ( Throwable t,
const P1 &  p1,
const P2 &  p2,
const P3 &  p3,
const P4 &  p4,
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.

Parameters:
t the throwable object
p1 mock method parameter 1
p2 mock method parameter 2
p3 mock method parameter 3
p4 mock method parameter 4
count the number of times this value shall be returned. Default is unlimited.

Definition at line 144 of file VisitableMockMethod4.h.

template<typename R, typename P1, typename P2, typename P3, typename P4>
void mockpp::VisitableMockMethod4Common< R, P1, P2, P3, P4 >::forward ( const ConstraintHolder< P1 > &  p1,
const ConstraintHolder< P2 > &  p2,
const ConstraintHolder< P3 > &  p3,
const ConstraintHolder< P4 > &  p4 
) const [inline]

Set up expectations with constraints.

Parameters:
p1 mock method parameter 1
p2 mock method parameter 2
p3 mock method parameter 3
p4 mock method parameter 4

Definition at line 73 of file VisitableMockMethod4.h.

template<typename R, typename P1, typename P2, typename P3, typename P4>
void mockpp::VisitableMockMethod4Common< R, P1, P2, P3, P4 >::forward_param ( const P1 &  p1,
const P2 &  p2,
const P3 &  p3,
const P4 &  p4 
) const [inline, protected]

Perform the internals to verify a mocked method or setup expectations.

Parameters:
p1 mock method parameter 1
p2 mock method parameter 2
p3 mock method parameter 3
p4 mock method parameter 4

Definition at line 92 of file VisitableMockMethod4.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:17 2010 for mockpp by  doxygen 1.6.1