Stub that always fails upon invocation. More...
Public Member Functions | |
TestFailureStub (const String &in_errorMessage) | |
Creates the test failure stub. | |
virtual R | invoke (const I &invocation) |
Mock the invocation. | |
virtual String | describeTo (String &buffer) const |
Appends the description of this object to the buffer. |
Stub that always fails upon invocation.
Definition at line 52 of file TestFailureStub.h.
mockpp::TestFailureStub< R, I >::TestFailureStub | ( | const String & | in_errorMessage | ) | [inline] |
Creates the test failure stub.
in_errorMessage | string for error message |
Definition at line 59 of file TestFailureStub.h.
virtual String mockpp::TestFailureStub< R, I >::describeTo | ( | String & | buffer | ) | const [inline, virtual] |
Appends the description of this object to the buffer.
buffer | The buffer that the description is appended to. |
Implements mockpp::SelfDescribing.
Definition at line 78 of file TestFailureStub.h.
virtual R mockpp::TestFailureStub< R, I >::invoke | ( | const I & | invocation | ) | [inline, virtual] |
Mock the invocation.
invocation | invocation data |
Implements mockpp::Stub< R, I >.
Definition at line 67 of file TestFailureStub.h.