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

Build chaining mocks. More...

Inheritance diagram for mockpp::ChainingMockBuilder< AMB >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 ChainingMockBuilder (DynamicChainingMock< R, I > *in_coreMock, BuilderNamespace *in_buildernamespace, const String &name)
 Construct the object.
String toString () const
 Transform the object's state to a human readable string.
virtual void verify ()
 Verify that the expected value is within the allowed bounds.
virtual void addInvokable (typename Invokable< R, I >::AP invokable)
 Adds an invokable to the mock object.
InvocationMockerBuilder< AMB > & stubs ()
 Stubs an invocation.
InvocationMockerBuilder< AMB > & stubs (const MatcherHolder< I > &customMatcher)
 Stubs an invocation.
InvocationMockerBuilder< AMB > & expects (const MatcherHolder< I > &expectation)
 Expects an invocation.
virtual void setDefaultStub (const mockpp::StubHolder< R, I > &newDefaultStub)
 Sets the default stub for the object.
void reset ()
 Clears all internal states.
MatchBuilderAdapterBaselookupID (const String &id) const
 Searches a match builder.
void registerUniqueID (const String &id, MatchBuilderAdapterBase *builder)
 Registers a match builder.

Detailed Description

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

Build chaining mocks.

Definition at line 58 of file ChainingMockBuilder.h.


Constructor & Destructor Documentation

template<typename AMB>
mockpp::ChainingMockBuilder< AMB >::ChainingMockBuilder ( DynamicChainingMock< R, I > *  in_coreMock,
BuilderNamespace in_buildernamespace,
const String name 
) [inline]

Construct the object.

Parameters:
in_coreMock pointer to core mock
in_buildernamespace builder names
name mock name
Returns:
return value from mocked invocation

Definition at line 72 of file ChainingMockBuilder.h.


Member Function Documentation

template<typename AMB>
virtual void mockpp::ChainingMockBuilder< AMB >::addInvokable ( typename Invokable< R, I >::AP  invokable  )  [inline, virtual]

Adds an invokable to the mock object.

Parameters:
invokable pointer to the default stub

Implements mockpp::DynamicChainingMock< AMB::ReturnType, AMB::InvocationType >.

Definition at line 99 of file ChainingMockBuilder.h.

template<typename AMB>
MatchBuilderAdapterBase* mockpp::ChainingMockBuilder< AMB >::lookupID ( const String id  )  const [inline]

Searches a match builder.

Parameters:
id name of the builder
Returns:
the match builder

Definition at line 156 of file ChainingMockBuilder.h.

template<typename AMB>
void mockpp::ChainingMockBuilder< AMB >::registerUniqueID ( const String id,
MatchBuilderAdapterBase builder 
) [inline]

Registers a match builder.

Parameters:
id name of the builder
builder the match builder

Definition at line 171 of file ChainingMockBuilder.h.

template<typename AMB>
String mockpp::ChainingMockBuilder< AMB >::toString (  )  const [inline, virtual]

Transform the object's state to a human readable string.

Returns:
string representation

Implements mockpp::DynamicChainingMock< AMB::ReturnType, AMB::InvocationType >.

Definition at line 83 of file ChainingMockBuilder.h.

template<typename AMB>
virtual void mockpp::ChainingMockBuilder< AMB >::verify (  )  [inline, virtual]

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:12 2010 for mockpp by  doxygen 1.6.1