OpenCTF  1.5.0
Open Component Test Framework
 All Classes Functions Variables
THandlerManager Class Reference

An instance of class contains a list of registered test handlers (objects which implement IComponentHandler) and iterates over this list to build the DUnit test suite with all component tests. More...

List of all members.

Public Member Functions

 ~THandlerManager ()
 Destroy.
 Add (const IComponentHandler Handler)
 Add a component handler.

Detailed Description

An instance of class contains a list of registered test handlers (objects which implement IComponentHandler) and iterates over this list to build the DUnit test suite with all component tests.

The only instance of this class is declared and initialized in the OpenCTF main unit (OpenCTF.pas).


Member Function Documentation

Add a component handler.

The method THandlerManager::Add adds a new component handler to the handler list.

This procedure usually appears in the initialization section of units which contain specialized subclasses of TComponentHandler and TComponentTest.

 initialization
 OpenCTF.Add(TCustomActionListTestHandler.Create(TCustomActionList));