2005/5/9

     
 

class TestCaller

artefaktur
Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

acdk::tools::aunit::TestCaller< TestClass > Class Template Reference

#include <TestUnit.h>

Inheritance diagram for acdk::tools::aunit::TestCaller< TestClass >:

acdk::tools::aunit::TestCase acdk::lang::Object acdk::tools::aunit::Test acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch List of all members.

Detailed Description

template<class TestClass>
class acdk::tools::aunit::TestCaller< TestClass >

adapter for native C++ test methods implemenations


Public Types

typedef void(TestClass::* TestMethod )()

Public Member Functions

 TestCaller (const char *name, TestMethod testmethod)
void runTest ()
void setUp ()
 before starting a test setUp() will be called

void tearDown ()
 after executing a test tearDown() will be called

RString toString ()
 return a string representation of this object Object::toString() return getName() by default

RString getName ()
 returns the ClassName for this object by default


Private Attributes

RefHolder< TestClass_testClass
TestMethod _testMethod


Member Typedef Documentation

template<class TestClass>
typedef void(TestClass::* acdk::tools::aunit::TestCaller< TestClass >::TestMethod)()
 


Constructor & Destructor Documentation

template<class TestClass>
acdk::tools::aunit::TestCaller< TestClass >::TestCaller const char *  name,
TestMethod  testmethod
[inline]
 


Member Function Documentation

template<class TestClass>
RString acdk::tools::aunit::TestCaller< TestClass >::getName  )  [inline, virtual]
 

returns the ClassName for this object by default

Reimplemented from acdk::tools::aunit::TestCase.

template<class TestClass>
void acdk::tools::aunit::TestCaller< TestClass >::runTest  )  [inline, virtual]
 

Implements acdk::tools::aunit::TestCase.

template<class TestClass>
void acdk::tools::aunit::TestCaller< TestClass >::setUp  )  [inline, virtual]
 

before starting a test setUp() will be called

Reimplemented from acdk::tools::aunit::TestCase.

template<class TestClass>
void acdk::tools::aunit::TestCaller< TestClass >::tearDown  )  [inline, virtual]
 

after executing a test tearDown() will be called

Reimplemented from acdk::tools::aunit::TestCase.

template<class TestClass>
RString acdk::tools::aunit::TestCaller< TestClass >::toString  )  [inline, virtual]
 

return a string representation of this object Object::toString() return getName() by default

Reimplemented from acdk::tools::aunit::TestCase.


Member Data Documentation

template<class TestClass>
RefHolder<TestClass> acdk::tools::aunit::TestCaller< TestClass >::_testClass [private]
 

template<class TestClass>
TestMethod acdk::tools::aunit::TestCaller< TestClass >::_testMethod [private]