vrj::test::Test Class Reference

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

#include <vrj/Test/Test.h>

Inheritance diagram for vrj::test::Test:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 Test ()
virtual void setApp (vrj::App *app)=0
 Sets the application that we are testing.
virtual void setUp ()
 Do any setup needed before the test starts.
virtual void tearDown ()
 Do any cleanup needed after running.
virtual void processTest ()=0
 Gives the test time to process (that is, run & test).
virtual bool isDone ()=0
 Returns true when the test is done processing.
virtual std::string getName ()=0
 Gets the name of the test.

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]

Sets 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 66 of file Test.h.

00067    {;}

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

Do any cleanup needed after running.

Definition at line 70 of file Test.h.

00071    {;}

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

Gives the test time to process (that is, run & test).

This method is called by the runner at then end of vrj::App:;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]

Returns true when the test is done processing.

testing

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

Gets the name of the test.

Implemented in vrj::test::TestCase.

Referenced by vrj::test::TestFailure::getFailedTestName().


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