mockpp::ThrowStub< R > Class Template Reference

A stub throwing exceptions. More...

Inheritance diagram for mockpp::ThrowStub< R >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 ThrowStub (Throwable *in_throwable)
 Creates the object.
 ThrowStub (ThrowableItem &in_throwable)
 Creates the object.
virtual R typelessInvoke ()
 Mock the invocation without passing parameters.

Detailed Description

template<typename R>
class mockpp::ThrowStub< R >

A stub throwing exceptions.

Definition at line 94 of file ThrowStub.h.


Constructor & Destructor Documentation

template<typename R >
mockpp::ThrowStub< R >::ThrowStub ( Throwable in_throwable  )  [inline]

Creates the object.

Parameters:
in_throwable pointer to the object to throw

Definition at line 101 of file ThrowStub.h.

template<typename R >
mockpp::ThrowStub< R >::ThrowStub ( ThrowableItem in_throwable  )  [inline]

Creates the object.

Parameters:
in_throwable the object to throw

Definition at line 108 of file ThrowStub.h.


Member Function Documentation

template<typename R >
virtual R mockpp::ThrowStub< R >::typelessInvoke (  )  [inline, virtual]

Mock the invocation without passing parameters.

Actually the method never returns but the excection is thrown instead.

Returns:
return value from mocked invocation

Implements mockpp::TypelessStub< R >.

Definition at line 116 of file ThrowStub.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