DLTestManager Class Reference

The DLTestManager class manages the run time environment for the set of DLTests defined by the developer. Upon successful completion of each DLTest, it displays the DLTest log messages to the screen. When any run-time exception occurs, it displays the detailed error message to the screen. The developer can make use of this error catching facility for testing and debugging purposes. More...

#include <DLTestManager.h>

List of all members.

Public Member Functions

 DLTestManager (int argc, char **argv)
 ~DLTestManager ()
void addTestCase (DLTest *newTest)
int go ()


Detailed Description

The DLTestManager class manages the run time environment for the set of DLTests defined by the developer. Upon successful completion of each DLTest, it displays the DLTest log messages to the screen. When any run-time exception occurs, it displays the detailed error message to the screen. The developer can make use of this error catching facility for testing and debugging purposes.

All the run-time exception types defined in DLException class are supported. DLTestManager does not interpret, but simply make the command line arguments availabe to each DLTest.

Definition at line 25 of file DLTestManager.h.


Constructor & Destructor Documentation

DLTestManager::DLTestManager ( int  argc,
char **  argv 
) [inline]

Default DLTestManager Constructor. Initialize the list of command line arguments

Parameters:
argc An integer that contains the count of arguments that follow in argv. The argc parameter is always greater than or equal to 1.
argv An array of null-terminated strings representing command-line arguments entered by the user of the program. By convention, argv[0] is the command with which the program is invoked, argv[1] is the first command-line argument, and so on, until argv[argc], which is always NULL.

Definition at line 38 of file DLTestManager.h.

DLTestManager::~DLTestManager (  )  [inline]

Default DLTestManager Destructor

Definition at line 43 of file DLTestManager.h.


Member Function Documentation

void DLTestManager::addTestCase ( DLTest newTest  ) 

Add a new DLTest to the test sequence

Parameters:
newTest DLTest* to the added test

int DLTestManager::go (  ) 

Run the sequence of DLTests and catch any run-time exceptions

Returns:
0 if all the DLTests completed successfully


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

DLTestDOCLIB Library is an add-on module of DOCLIB. DOCLIB is being developed under contract by a collaboration between:

The Laboratory for Language and Media Processing
Unviersity of Maryland, College Park
and
Booz | Allen | Hamilton

All Rights Reserved, 2003-2007