mockpp::VerifyingTestCaller< VerifyingFixtureType, DoTheVerify > Class Template Reference
[Support for test frameworks.Basic Mock ObjectsAdvanced Mock Objects]

VerifyingTestCaller that verifies Verifiable fields and registered Verifiable objects after the test has run and before the fixture has been torn down. More...

List of all members.

Public Member Functions

 VerifyingTestCaller (const MOCKPP_STD_NS::string &name, TestCaseMethod test, VerifyingFixtureType &fixture)
 Constructor for VerifyingTestCaller.
 VerifyingTestCaller (const MOCKPP_STD_NS::string &name, TestCaseMethod test, VerifyingFixtureType *fixture)
 Constructor for VerifyingTestCaller.
virtual void runTest ()
 Runs the test method with mock object verification afterwards.
std::string toString () const
 Returns the the callers string representation.

Detailed Description

template<typename VerifyingFixtureType, bool DoTheVerify>
class mockpp::VerifyingTestCaller< VerifyingFixtureType, DoTheVerify >

VerifyingTestCaller that verifies Verifiable fields and registered Verifiable objects after the test has run and before the fixture has been torn down.

Definition at line 55 of file VerifyingTestCaller.h.


Constructor & Destructor Documentation

template<typename VerifyingFixtureType , bool DoTheVerify>
mockpp::VerifyingTestCaller< VerifyingFixtureType, DoTheVerify >::VerifyingTestCaller ( const MOCKPP_STD_NS::string &  name,
TestCaseMethod  test,
VerifyingFixtureType &  fixture 
) [inline]

Constructor for VerifyingTestCaller.

This constructor does not create a new Fixture instance but accepts an existing one as parameter. The VerifyingTestCaller will not own the Fixture object.

Parameters:
name name of this VerifyingTestCaller
test the method this VerifyingTestCaller calls in runTest()
fixture the Fixture to invoke the test method on.

Definition at line 69 of file VerifyingTestCaller.h.

template<typename VerifyingFixtureType , bool DoTheVerify>
mockpp::VerifyingTestCaller< VerifyingFixtureType, DoTheVerify >::VerifyingTestCaller ( const MOCKPP_STD_NS::string &  name,
TestCaseMethod  test,
VerifyingFixtureType *  fixture 
) [inline]

Constructor for VerifyingTestCaller.

This constructor does not create a new Fixture instance but accepts an existing one as parameter. The VerifyingTestCaller will own the Fixture object and delete it in its destructor.

Parameters:
name name of this VerifyingTestCaller
test the method this VerifyingTestCaller calls in runTest()
fixture the Fixture to invoke the test method on.

Definition at line 85 of file VerifyingTestCaller.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:18 2010 for mockpp by  doxygen 1.6.1