#include <TestCase.h>
Inheritance diagram for wxTestCase::
Public Methods | |
wxTestCase (const char *pszDescription, wxITest *pParent=0) | |
virtual | ~wxTestCase () |
virtual void | Delete () |
Destroys and deallocates the test. More... | |
virtual const char * | GetDescription () |
Retreive a human readable description of this test. More... | |
virtual TestState | GetState () |
Retreive the current TestState of this test. More... | |
virtual void | SetState (TestState newState) |
Assign a new state to this test. More... | |
virtual void | Run (wxITestRunner *pResult) |
Begin executing this test. More... | |
virtual void | Run (wxITestRunner *pResult, long unsigned nThreadId) |
Begin executing this test in a multi-threaded enviroment. More... | |
virtual bool | IsThreadSafe () |
Determine if this test is intended to be thread-safe. More... | |
virtual int | GetNumSubTests () |
Retreive the number of sub-tests for this test. More... | |
virtual void | GetSubTests (wxITest **pOutTests) |
Retreive the child-tests of this test. More... | |
virtual const wxITest * | GetParent () const |
Retreive the parent of this test. More... | |
virtual wxITest * | GetParent () |
Retreive the parent of this test. More... | |
virtual void | SetParent (wxITest *pParent) |
Assign a new parent to this test. More... | |
virtual void | Setup () |
Set up this object's state before actually executing any tests. More... | |
virtual void | TearDown () |
Clean up anything that was allocated in Setup. More... | |
Protected Types | |
typedef long unsigned | ThreadId |
Protected Attributes | |
char * | m_pszDescription |
TestState | m_state |
wxITest * | m_pParent |
Definition at line 27 of file TestCase.h.
|
Definition at line 123 of file TestCase.h. |
|
|
|
|
|
Destroys and deallocates the test.
Reimplemented from wxITest. |
|
Retreive a human readable description of this test.
Reimplemented from wxITest. |
|
Retreive the current TestState of this test.
Reimplemented from wxITest. |
|
Assign a new state to this test. This method is usually called by the test-runner after the test has completed.
Reimplemented from wxITest. |
|
Begin executing this test.
Reimplemented from wxITest. Reimplemented in wxTestCaseMultiThreaded. Definition at line 59 of file TestCase.h. |
|
Begin executing this test in a multi-threaded enviroment.
Reimplemented from wxITest. Reimplemented in wxTestCaseMultiThreaded. Definition at line 67 of file TestCase.h. |
|
Determine if this test is intended to be thread-safe. This useful for test runners that may want to run the test in multiple threads simultaneously to test for resource conflicts and deadlocks. Reimplemented from wxITest. |
|
Retreive the number of sub-tests for this test.
Reimplemented from wxITest. Reimplemented in wxTestCaseMultiThreaded. Definition at line 80 of file TestCase.h. |
|
Retreive the child-tests of this test.
Reimplemented from wxITest. Reimplemented in wxTestCaseMultiThreaded. Definition at line 87 of file TestCase.h. |
|
Retreive the parent of this test.
Reimplemented from wxITest. |
|
Retreive the parent of this test.
Reimplemented from wxITest. |
|
Assign a new parent to this test.
Reimplemented from wxITest. |
|
Set up this object's state before actually executing any tests.
|
|
Clean up anything that was allocated in Setup.
|
|
Definition at line 125 of file TestCase.h. |
|
Definition at line 126 of file TestCase.h. |
|
Definition at line 127 of file TestCase.h. |