mockpp::TestFailureStub< R, I > Class Template Reference
[Stubs]

Stub that always fails upon invocation. More...

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

List of all members.

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.

Detailed Description

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

Stub that always fails upon invocation.

See also:
mockpp::never

Definition at line 52 of file TestFailureStub.h.


Constructor & Destructor Documentation

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

Creates the test failure stub.

Parameters:
in_errorMessage string for error message

Definition at line 59 of file TestFailureStub.h.


Member Function Documentation

template<typename R , typename I >
virtual String mockpp::TestFailureStub< R, I >::describeTo ( String buffer  )  const [inline, virtual]

Appends the description of this object to the buffer.

Parameters:
buffer The buffer that the description is appended to.
Returns:
The current content of the buffer data

Implements mockpp::SelfDescribing.

Definition at line 78 of file TestFailureStub.h.

template<typename R , typename I >
virtual R mockpp::TestFailureStub< R, I >::invoke ( const I &  invocation  )  [inline, virtual]

Mock the invocation.

Parameters:
invocation invocation data
Returns:
return value from mocked invocation

Implements mockpp::Stub< R, I >.

Definition at line 67 of file TestFailureStub.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:03 2010 for mockpp by  doxygen 1.6.1