wxTst::InitWxGuiTest Class Reference

"Package" all registered wxWidgets GUI tests in decorated shape. More...

#include <InitWxGuiTest.h>

Inheritance diagram for wxTst::InitWxGuiTest:

Inheritance graph
[legend]
Collaboration diagram for wxTst::InitWxGuiTest:

Collaboration graph
[legend]

List of all members.

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.


Detailed Description

"Package" all registered wxWidgets GUI tests in decorated shape.

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.


Constructor & Destructor Documentation

wxTst::InitWxGuiTest::InitWxGuiTest (  ) 

Constructor.

Definition at line 26 of file InitWxGuiTest.cpp.

wxTst::InitWxGuiTest::~InitWxGuiTest (  )  [virtual]

Destructor.

Definition at line 32 of file InitWxGuiTest.cpp.


Member Function Documentation

void wxTst::InitWxGuiTest::setUp (  )  [virtual]

Set up context before running a test.

Definition at line 54 of file InitWxGuiTest.cpp.

CPPUNIT_NS::Test * wxTst::InitWxGuiTest::suite (  )  [static]

Find and return decorater containing all wxWidgets GUI tests.

Returns:
decorater containing all wxWidgets GUI tests

Definition at line 38 of file InitWxGuiTest.cpp.

void wxTst::InitWxGuiTest::tearDown (  )  [virtual]

Clean up after the test run.

Definition at line 60 of file InitWxGuiTest.cpp.


The documentation for this class was generated from the following files:

wxWidgets Logo Get wxGuiTesting at SourceForge.net. Fast, secure and Free Open Source software downloads
Generated on Tue Mar 17 17:29:30 2009 for wxGuiTesting by doxygen 1.5.5