#include <vrj/Test/Test.h>
Inheritance diagram for vrj::test::Test:

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. | |
Definition at line 52 of file Test.h.
| 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] |
| virtual void vrj::test::Test::tearDown | ( | ) | [inline, virtual] |
| 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.
| 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().
1.5.1