Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

at::UnitTest Class Reference

#include <at_unit_test.h>

Collaboration diagram for at::UnitTest:

Collaboration graph
List of all members.

Public Methods

 UnitTest (const UnitTestContext *i_context=0)
virtual ~UnitTest ()
virtual void Run ()=0
virtual UnitTestKey_BasicLocator ()=0
virtual const std::string & GetArg (const std::string &i_name, const std::string &i_default)

Public Attributes

UnitTestTraits::t_TestResult m_expected_result
const UnitTestContextm_context

Detailed Description

UnitTest defines the basic unit test interface.

A unit test runs three separate tests: contruction, run and destruction.

Constructor & Destructor Documentation

at::UnitTest::UnitTest const UnitTestContext   i_context = 0 [inline]

virtual at::UnitTest::~UnitTest   [inline, virtual]

Need a virtual destructor

Member Function Documentation

virtual const std::string& at::UnitTest::GetArg const std::string &    i_name,
const std::string &    i_default
[inline, virtual]

GetArg returns a string parameter that was passed in the command line.

i_name  Name of the parameter.
i_default  Default value of the paramter.

virtual UnitTestKey_Basic* at::UnitTest::Locator   [pure virtual]

A unit test locator indicates where it may be found.

virtual void at::UnitTest::Run   [pure virtual]

Run() performs the basic test - a return from the run method indicates success.

Member Data Documentation

const UnitTestContext* at::UnitTest::m_context

m_context points the the context of the framework

UnitTestTraits::t_TestResult at::UnitTest::m_expected_result

m_expected_result is set to the expected result. A test is deemed succeeded if the m_expected_result is the same as the actual result. This is usually set to TestSuccess.

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

Generated for Austria by doxygen and MakeXS at Sun Oct 24 17:35:34 PDT 2004