Interface for chaining mocks. More...
Public Types | |
typedef AutoPointer < DynamicChainingMock< R, I > > | AP |
internal shorthand | |
Public Member Functions | |
DynamicChainingMock (const String &name, VerifiableList *parent=0) | |
Constructs the chaining mock. | |
virtual String | toString () const =0 |
Transform the object's state to a human readable string. | |
virtual void | setDefaultStub (const mockpp::StubHolder< R, I > &newDefaultStub)=0 |
Sets the default stub for the object. | |
virtual void | addInvokable (typename Invokable< R, I >::AP invokable)=0 |
Adds an invokable to the mock object. | |
virtual void | reset ()=0 |
Clears all internal states. |
Interface for chaining mocks.
Definition at line 58 of file DynamicChainingMock.h.
mockpp::DynamicChainingMock< R, I >::DynamicChainingMock | ( | const String & | name, | |
VerifiableList * | parent = 0 | |||
) | [inline] |
Constructs the chaining mock.
name | pointer to invocation dispatcher | |
parent | pointer to parent verifiable |
Definition at line 68 of file DynamicChainingMock.h.
virtual void mockpp::DynamicChainingMock< R, I >::addInvokable | ( | typename Invokable< R, I >::AP | invokable | ) | [pure virtual] |
Adds an invokable to the mock object.
invokable | pointer to the default stub |
Implemented in mockpp::ChainingMockBuilder< AMB >, mockpp::AbstractDynamicChainingMockImpl< void, InvocationType >, mockpp::AbstractDynamicChainingMockImpl< void, I >, and mockpp::AbstractDynamicChainingMockImpl< RT, InvocationType >.
virtual void mockpp::DynamicChainingMock< R, I >::setDefaultStub | ( | const mockpp::StubHolder< R, I > & | newDefaultStub | ) | [pure virtual] |
Sets the default stub for the object.
newDefaultStub | pointer to the default stub |
Implemented in mockpp::AbstractDynamicChainingMockImpl< R, I >, mockpp::ChainingMockBuilder< AMB >, mockpp::AbstractDynamicChainingMockImpl< void, InvocationType >, mockpp::AbstractDynamicChainingMockImpl< void, I >, and mockpp::AbstractDynamicChainingMockImpl< RT, InvocationType >.
virtual String mockpp::DynamicChainingMock< R, I >::toString | ( | ) | const [pure virtual] |
Transform the object's state to a human readable string.
Implemented in mockpp::AbstractDynamicChainingMockImpl< R, I >, mockpp::ChainingMockBuilder< AMB >, mockpp::AbstractDynamicChainingMockImpl< void, InvocationType >, mockpp::AbstractDynamicChainingMockImpl< void, I >, mockpp::AbstractDynamicChainingMockImpl< RT, InvocationType >, mockpp::ChainingMockBuilder< ArgumentsMatchBuilder6< void, Invocation6< P1, P2, P3, P4, P5, P6 > > >, mockpp::ChainingMockBuilder< ArgumentsMatchBuilder2< RT, Invocation2< P1, P2 > > >, mockpp::ChainingMockBuilder< ArgumentsMatchBuilder0< RT, Invocation0 > >, mockpp::ChainingMockBuilder< ArgumentsMatchBuilder3< RT, Invocation3< P1, P2, P3 > > >, mockpp::ChainingMockBuilder< ArgumentsMatchBuilder6< RT, Invocation6< P1, P2, P3, P4, P5, P6 > > >, mockpp::ChainingMockBuilder< ArgumentsMatchBuilder5< RT, Invocation5< P1, P2, P3, P4, P5 > > >, mockpp::ChainingMockBuilder< ArgumentsMatchBuilder5< void, Invocation5< P1, P2, P3, P4, P5 > > >, mockpp::ChainingMockBuilder< ArgumentsMatchBuilder2< void, Invocation2< P1, P2 > > >, mockpp::ChainingMockBuilder< ArgumentsMatchBuilder4< void, Invocation4< P1, P2, P3, P4 > > >, mockpp::ChainingMockBuilder< ArgumentsMatchBuilder4< RT, Invocation4< P1, P2, P3, P4 > > >, mockpp::ChainingMockBuilder< ArgumentsMatchBuilder0< void, Invocation0 > >, mockpp::ChainingMockBuilder< ArgumentsMatchBuilder1< RT, Invocation1< P1 > > >, mockpp::ChainingMockBuilder< ArgumentsMatchBuilder1< void, Invocation1< P1 > > >, and mockpp::ChainingMockBuilder< ArgumentsMatchBuilder3< void, Invocation3< P1, P2, P3 > > >.