#include <InitWxGuiTest.h>
Public Member Functions | |
InitWxGuiTest () | |
Constructor. | |
virtual void | setUp () |
Set up context before running a test. | |
virtual void | tearDown () |
Clean up after the test run. | |
virtual | ~InitWxGuiTest () |
Destructor. | |
Static Public Member Functions | |
static CPPUNIT_NS::Test * | suite () |
Find and return decorater containing all wxWidgets GUI tests. |
CppUnit test application is retrieving all registered test cases before TestRunner is actually running them by means of TestFactoryRegistry::getRegistry().makeTest() method. This method in turn will find and use static suite() methods returning tests.
In contrast to regular test classes the suite() method of this class returns all wxWidgets GUI tests being registered in "WxGuiTest" named registry as one single test. In fact, it is a TestDecorator holding all these GUI tests allowing to initialise wxWidgets GUI library part exactly once before running tests, as well as helping in diversion the flow of control.
Definition at line 38 of file InitWxGuiTest.h.
wxTst::InitWxGuiTest::InitWxGuiTest | ( | ) |
wxTst::InitWxGuiTest::~InitWxGuiTest | ( | ) | [virtual] |
void wxTst::InitWxGuiTest::setUp | ( | ) | [virtual] |
CPPUNIT_NS::Test * wxTst::InitWxGuiTest::suite | ( | ) | [static] |
Find and return decorater containing all wxWidgets GUI tests.
Definition at line 38 of file InitWxGuiTest.cpp.
void wxTst::InitWxGuiTest::tearDown | ( | ) | [virtual] |