vrj::test::TestCase Class Reference

Base class for normal single test case. More...

#include <vrj/Test/TestCase.h>

Inheritance diagram for vrj::test::TestCase:

Inheritance graph
[legend]
Collaboration diagram for vrj::test::TestCase:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TestCase (std::string name)
virtual ~TestCase ()
virtual void setApp (vrj::App *app)
 Sets the application that we are testing.
virtual std::string getName ()
 Gets the name of the test.

Protected Attributes

vrj::AppmApp
 Pointer to the application to be testing.
std::string mName
 Name of the test.

Detailed Description

Base class for normal single test case.

Definition at line 52 of file TestCase.h.


Constructor & Destructor Documentation

vrj::test::TestCase::TestCase ( std::string  name  )  [inline]

Definition at line 55 of file TestCase.h.

00056       : mName(name)
00057    {;}

virtual vrj::test::TestCase::~TestCase (  )  [inline, virtual]

Definition at line 59 of file TestCase.h.

00060    {;}


Member Function Documentation

virtual void vrj::test::TestCase::setApp ( vrj::App app  )  [inline, virtual]

Sets the application that we are testing.

To do anything meaningful you will probably have to dynamic_cast the app to you application type.

Implements vrj::test::Test.

Definition at line 62 of file TestCase.h.

References mApp.

00063    {
00064       mApp = app;
00065    }

virtual std::string vrj::test::TestCase::getName (  )  [inline, virtual]

Gets the name of the test.

Implements vrj::test::Test.

Definition at line 67 of file TestCase.h.

References mName.

00068    {
00069       return mName;
00070    }


Member Data Documentation

vrj::App* vrj::test::TestCase::mApp [protected]

Pointer to the application to be testing.

Definition at line 73 of file TestCase.h.

Referenced by setApp().

std::string vrj::test::TestCase::mName [protected]

Name of the test.

Definition at line 74 of file TestCase.h.

Referenced by getName().


The documentation for this class was generated from the following file:
Generated on Thu Jan 4 10:58:34 2007 for VR Juggler by  doxygen 1.5.1