Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

vrj::test::Test Class Reference

Base interface for what all tests must look like. More...

#include <Test.h>

Inheritance diagram for vrj::test::Test:

Inheritance graph
[legend]
List of all members.

Public Methods

 Test ()
virtual void setApp (vrj::App *app)=0
 Set the application that we are testing To do anything meaningful you will probably have to dynamic_cast the app to you application type. More...

virtual void setUp ()
 Do any setup needed before the test starts. More...

virtual void tearDown ()
 Do any cleanup needed after running. More...

virtual void processTest ()=0
 Gives the test time to process (ie. More...

virtual bool isDone ()=0
 Return true when the test is done processing testing. More...

virtual std::string getName ()=0
 Get the name of the test. More...


Detailed Description

Base interface for what all tests must look like.

Definition at line 52 of file Test.h.


Constructor & Destructor Documentation

vrj::test::Test::Test   [inline]
 

Definition at line 55 of file Test.h.

00056     {;}


Member Function Documentation

virtual void vrj::test::Test::setApp vrj::App   app [pure virtual]
 

Set the application that we are testing To do anything meaningful you will probably have to dynamic_cast the app to you application type.

Implemented in vrj::test::TestCase.

virtual void vrj::test::Test::setUp   [inline, virtual]
 

Do any setup needed before the test starts.

Definition at line 65 of file Test.h.

00066    {;}

virtual void vrj::test::Test::tearDown   [inline, virtual]
 

Do any cleanup needed after running.

Definition at line 69 of file Test.h.

00070    {;}

virtual void vrj::test::Test::processTest   [pure virtual]
 

Gives the test time to process (ie.

run & test) This method is called by the runner at then end of preFrame until isDone is true.

Precondition:
isDone() == false
Exceptions:
vrj::test::TestFailure  - Thrown if the test fails

virtual bool vrj::test::Test::isDone   [pure virtual]
 

Return true when the test is done processing testing.

virtual std::string vrj::test::Test::getName   [pure virtual]
 

Get the name of the test.

Implemented in vrj::test::TestCase.


The documentation for this class was generated from the following file:
Generated on Sun May 2 15:11:16 2004 for VR Juggler by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002