DataTestCaller< Fixture > Class Template Reference

#include <DataTestCaller.h> [code]

Inherits TestCase.

Inheritance diagram for DataTestCaller< Fixture >:

Inheritance graph
[legend]
Collaboration diagram for DataTestCaller< Fixture >:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class Fixture>
class DataTestCaller< Fixture >

Generate a test case for a single data test for fixture method.

Do not use this class directly. It is used by DataTestSuite.

See also:
DataTestSuite

Definition at line 23 of file DataTestCaller.h.

Public Member Functions

 DataTestCaller (std::string name, TestMethod test, void *data, Fixture *fixture)
 ~DataTestCaller ()
void runTest ()
void setUp ()
void tearDown ()
std::string toString () const

Private Types

typedef void(Fixture::* TestMethod )()

Private Member Functions

 DataTestCaller (const DataTestCaller &other)
DataTestCalleroperator= (const DataTestCaller &other)

Private Attributes

bool m_ownFixture
Fixture * m_fixture
TestMethod m_test
void * m_testData


Member Typedef Documentation

template<class Fixture>
typedef void(Fixture::* DataTestCaller< Fixture >::TestMethod)() [private]
 

Definition at line 25 of file DataTestCaller.h.


Constructor & Destructor Documentation

template<class Fixture>
DataTestCaller< Fixture >::DataTestCaller std::string  name,
TestMethod  test,
void *  data,
Fixture *  fixture
[inline]
 

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

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

Definition at line 38 of file DataTestCaller.h.

template<class Fixture>
DataTestCaller< Fixture >::~DataTestCaller  )  [inline]
 

Definition at line 48 of file DataTestCaller.h.

template<class Fixture>
DataTestCaller< Fixture >::DataTestCaller const DataTestCaller< Fixture > &  other  )  [private]
 


Member Function Documentation

template<class Fixture>
DataTestCaller& DataTestCaller< Fixture >::operator= const DataTestCaller< Fixture > &  other  )  [private]
 

template<class Fixture>
void DataTestCaller< Fixture >::runTest  )  [inline]
 

Definition at line 54 of file DataTestCaller.h.

template<class Fixture>
void DataTestCaller< Fixture >::setUp  )  [inline]
 

Definition at line 60 of file DataTestCaller.h.

template<class Fixture>
void DataTestCaller< Fixture >::tearDown  )  [inline]
 

Definition at line 65 of file DataTestCaller.h.

template<class Fixture>
std::string DataTestCaller< Fixture >::toString  )  const [inline]
 

Definition at line 70 of file DataTestCaller.h.


Member Data Documentation

template<class Fixture>
Fixture* DataTestCaller< Fixture >::m_fixture [private]
 

Definition at line 81 of file DataTestCaller.h.

template<class Fixture>
bool DataTestCaller< Fixture >::m_ownFixture [private]
 

Definition at line 80 of file DataTestCaller.h.

template<class Fixture>
TestMethod DataTestCaller< Fixture >::m_test [private]
 

Definition at line 82 of file DataTestCaller.h.

template<class Fixture>
void* DataTestCaller< Fixture >::m_testData [private]
 

Definition at line 83 of file DataTestCaller.h.


The documentation for this class was generated from the following file: