mockpp::AbstractDynamicChainingMockImpl< R, I > Class Template Reference

Implementation of a chaining mock. More...

Inheritance diagram for mockpp::AbstractDynamicChainingMockImpl< R, I >:
Inheritance graph
[legend]

List of all members.

Classes

class  Describer

Public Member Functions

virtual void verify ()
 Verify that the expected value is within the allowed bounds.
virtual String toString () const
 Transform the object's state to a human readable string.
String getMockName () const
 Gets the mock object's name.
virtual void setDefaultStub (const mockpp::StubHolder< R, I > &newDefaultStub)
 Sets the default stub for the object.
virtual void addInvokable (typename Invokable< R, I >::AP invokable)
 Adds an invokable to the mock object.
virtual void reset ()
 Clears all internal states.

Protected Member Functions

 AbstractDynamicChainingMockImpl (typename InvocationDispatcher< R, I >::AP in_invocationDispatcher, const String &name, VerifiableList *parent)
 Constructs the chaining mock.
virtual R mockInvocation (const I &invocation)=0
 Mocks an invocation.

Protected Attributes

AutoPointer< AssertionFailedErrorfailure
 internal shared member
InvocationDispatcher< R, I >::AP invocationDispatcher
 internal shared member

Detailed Description

template<typename R, typename I>
class mockpp::AbstractDynamicChainingMockImpl< R, I >

Implementation of a chaining mock.

Definition at line 58 of file AbstractDynamicChainingMock.h.


Constructor & Destructor Documentation

template<typename R, typename I>
mockpp::AbstractDynamicChainingMockImpl< R, I >::AbstractDynamicChainingMockImpl ( typename InvocationDispatcher< R, I >::AP  in_invocationDispatcher,
const String name,
VerifiableList parent 
) [inline, protected]

Constructs the chaining mock.

Parameters:
in_invocationDispatcher pointer to invocation dispatcher
name objects name
parent pointer to parent verifiable

Definition at line 67 of file AbstractDynamicChainingMock.h.


Member Function Documentation

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

Adds an invokable to the mock object.

Parameters:
invokable pointer to the invocable

Definition at line 184 of file AbstractDynamicChainingMock.h.

template<typename R, typename I>
String mockpp::AbstractDynamicChainingMockImpl< R, I >::getMockName (  )  const [inline]

Gets the mock object's name.

Returns:
name of object

Definition at line 168 of file AbstractDynamicChainingMock.h.

template<typename R, typename I>
virtual R mockpp::AbstractDynamicChainingMockImpl< R, I >::mockInvocation ( const I &  invocation  )  [protected, pure virtual]
template<typename R, typename I>
virtual void mockpp::AbstractDynamicChainingMockImpl< R, I >::setDefaultStub ( const mockpp::StubHolder< R, I > &  newDefaultStub  )  [inline, virtual]

Sets the default stub for the object.

Parameters:
newDefaultStub pointer to the default stub

Implements mockpp::DynamicChainingMock< R, I >.

Definition at line 176 of file AbstractDynamicChainingMock.h.

template<typename R, typename I>
virtual String mockpp::AbstractDynamicChainingMockImpl< R, I >::toString (  )  const [inline, virtual]

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

Returns:
string representation

Implements mockpp::DynamicChainingMock< R, I >.

Definition at line 160 of file AbstractDynamicChainingMock.h.

template<typename R, typename I>
virtual void mockpp::AbstractDynamicChainingMockImpl< R, I >::verify (  )  [inline, virtual]

Verify that the expected value is within the allowed bounds.

If it fails, an AssertionFailedError is thrown

Implements mockpp::Verifiable.

Definition at line 136 of file AbstractDynamicChainingMock.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:09 2010 for mockpp by  doxygen 1.6.1