BaseTest Class Reference

A test is a general interface to invoke something that may or may not fail. More...

#include <unittest_decls.h>

Inheritance diagram for BaseTest:

TestCase< F > TestSuite List of all members.

Public Member Functions

 BaseTest (const std::string &n)
 BaseTest constructor.
virtual BaseTestclone () const=0
 Virtual copy constructor.
virtual void run (BaseGatherer &g)=0
 Runs the test reporting results to the provided gatherer.

Protected Attributes

std::string name
 The name of the test.

Detailed Description

A test is a general interface to invoke something that may or may not fail.

It is implemented in TestCase and TestSuite.


Constructor & Destructor Documentation

BaseTest::BaseTest ( const std::string &  n  )  [inline]

BaseTest constructor.

Parameters:
n ist the name of the test


Member Function Documentation

virtual BaseTest* BaseTest::clone (  )  const [pure virtual]

Virtual copy constructor.

This might be quite memory intensive as it actually copies deep.

Returns:
an copy of this

Implemented in TestCase< F >, and TestSuite.

virtual void BaseTest::run ( BaseGatherer g  )  [pure virtual]

Runs the test reporting results to the provided gatherer.

Parameters:
g is the gatherer results are reported to

Implemented in TestCase< F >, and TestSuite.


The documentation for this class was generated from the following files:
Generated on Sat Feb 7 01:26:51 2009 by  doxygen 1.5.1