Implementation of a chaining mock. More...
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< AssertionFailedError > | failure |
internal shared member | |
InvocationDispatcher< R, I >::AP | invocationDispatcher |
internal shared member |
Implementation of a chaining mock.
Definition at line 58 of file AbstractDynamicChainingMock.h.
mockpp::AbstractDynamicChainingMockImpl< R, I >::AbstractDynamicChainingMockImpl | ( | typename InvocationDispatcher< R, I >::AP | in_invocationDispatcher, | |
const String & | name, | |||
VerifiableList * | parent | |||
) | [inline, protected] |
Constructs the chaining mock.
in_invocationDispatcher | pointer to invocation dispatcher | |
name | objects name | |
parent | pointer to parent verifiable |
Definition at line 67 of file AbstractDynamicChainingMock.h.
virtual void mockpp::AbstractDynamicChainingMockImpl< R, I >::addInvokable | ( | typename Invokable< R, I >::AP | invokable | ) | [inline, virtual] |
Adds an invokable to the mock object.
invokable | pointer to the invocable |
Definition at line 184 of file AbstractDynamicChainingMock.h.
String mockpp::AbstractDynamicChainingMockImpl< R, I >::getMockName | ( | ) | const [inline] |
Gets the mock object's name.
Definition at line 168 of file AbstractDynamicChainingMock.h.
virtual R mockpp::AbstractDynamicChainingMockImpl< R, I >::mockInvocation | ( | const I & | invocation | ) | [protected, pure virtual] |
Mocks an invocation.
invocation | the invocation data |
Implemented in mockpp::AbstractDynamicChainingMock< R, I >, mockpp::AbstractDynamicChainingMock< void, I >, mockpp::AbstractDynamicChainingMock< void, InvocationType >, and mockpp::AbstractDynamicChainingMock< RT, InvocationType >.
virtual void mockpp::AbstractDynamicChainingMockImpl< R, I >::setDefaultStub | ( | const mockpp::StubHolder< R, I > & | newDefaultStub | ) | [inline, virtual] |
Sets the default stub for the object.
newDefaultStub | pointer to the default stub |
Implements mockpp::DynamicChainingMock< R, I >.
Definition at line 176 of file AbstractDynamicChainingMock.h.
virtual String mockpp::AbstractDynamicChainingMockImpl< R, I >::toString | ( | ) | const [inline, virtual] |
Transform the object's state to a human readable string.
Implements mockpp::DynamicChainingMock< R, I >.
Definition at line 160 of file AbstractDynamicChainingMock.h.
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.