mockpp::InvocationMockerBuilder< AMB > Class Template Reference
[Chaining behaviour of a Chainable Mock Object]

Builder class for invocation related purposes. More...

List of all members.

Public Member Functions

 InvocationMockerBuilder (StubMatchersCollection< R, I > *in_mocker, BuilderNamespace *in_builderNamespace)
 Constructs the invocation mocker builder.
virtual MatchBuilder< R, I > & match (const MatcherHolder< I > &customMatcher)
 Adds another matcher.
IdentityBuilderexpect (const MatcherHolder< I > &expectation)
 Adds another expectation.
void id (const String &invocationID)
 Sets the identifier for the expectation.
virtual void setStub (const StubHolder< R, I > &stubAction)
 Sets the stub data for the invocation.

Protected Member Functions

virtual MatchBuilder< R, I > & with_cs (const MOCKPP_CS &constraintset)
 Indicate a matcher for a set of arguments.
virtual MatchBuilder< R, I > & internalWith_cs (const MOCKPP_CS &constraintset)
 Indicate a matcher for a set of arguments.
virtual BuilderNamespacegetBuilderNamespace ()
 Gets the builder namespace.
virtual StubMatchersCollection
< R, I > * 
getMocker ()
 Gets the matcher object.

Detailed Description

template<typename AMB>
class mockpp::InvocationMockerBuilder< AMB >

Builder class for invocation related purposes.

Definition at line 59 of file InvocationMockerBuilder.h.


Constructor & Destructor Documentation

template<typename AMB>
mockpp::InvocationMockerBuilder< AMB >::InvocationMockerBuilder ( StubMatchersCollection< R, I > *  in_mocker,
BuilderNamespace in_builderNamespace 
) [inline]

Constructs the invocation mocker builder.

Parameters:
in_mocker pointer to matcher object
in_builderNamespace pointer to builder namespace
Returns:

Definition at line 72 of file InvocationMockerBuilder.h.


Member Function Documentation

template<typename AMB>
IdentityBuilder& mockpp::InvocationMockerBuilder< AMB >::expect ( const MatcherHolder< I > &  expectation  )  [inline]

Adds another expectation.

Parameters:
expectation the matcher object
Returns:
the builder object

Definition at line 91 of file InvocationMockerBuilder.h.

template<typename AMB>
virtual BuilderNamespace* mockpp::InvocationMockerBuilder< AMB >::getBuilderNamespace (  )  [inline, protected, virtual]

Gets the builder namespace.

Returns:
pointer to builder namspace

Definition at line 138 of file InvocationMockerBuilder.h.

template<typename AMB>
virtual StubMatchersCollection<R, I>* mockpp::InvocationMockerBuilder< AMB >::getMocker (  )  [inline, protected, virtual]

Gets the matcher object.

Returns:
pointer to the matcher object

Definition at line 146 of file InvocationMockerBuilder.h.

template<typename AMB>
virtual MatchBuilder<R, I>& mockpp::InvocationMockerBuilder< AMB >::internalWith_cs ( const MOCKPP_CS &  constraintset  )  [inline, protected, virtual]

Indicate a matcher for a set of arguments.

Needed for compilers that can't invoke InvocationMockerBuilder<>::with_cs() directly.

Parameters:
constraintset constraint set
Returns:
the builder object

Definition at line 130 of file InvocationMockerBuilder.h.

template<typename AMB>
virtual MatchBuilder<R, I>& mockpp::InvocationMockerBuilder< AMB >::match ( const MatcherHolder< I > &  customMatcher  )  [inline, virtual]

Adds another matcher.

Parameters:
customMatcher the matcher object
Returns:
the builder object

Definition at line 82 of file InvocationMockerBuilder.h.

template<typename AMB>
virtual void mockpp::InvocationMockerBuilder< AMB >::setStub ( const StubHolder< R, I > &  stubAction  )  [inline, virtual]

Sets the stub data for the invocation.

Parameters:
stubAction the stub object

Definition at line 109 of file InvocationMockerBuilder.h.

template<typename AMB>
virtual MatchBuilder<R, I>& mockpp::InvocationMockerBuilder< AMB >::with_cs ( const MOCKPP_CS &  constraintset  )  [inline, protected, virtual]

Indicate a matcher for a set of arguments.

Parameters:
constraintset constraint set
Returns:
the builder object

Definition at line 120 of file InvocationMockerBuilder.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:05 2010 for mockpp by  doxygen 1.6.1