TestConnect Class Reference

Test class for connection establishement. More...

#include <TestConnect.hpp>

List of all members.

Public Member Functions

void setUp ()
 Init connectionPtr to NULL.
void tearDown ()
 Frees connectionPtr if applicable.
void testConnectBadAddress ()
 Tries to connect to a dummy controller address and checks that there is a failure.
void testConnectBadPort ()
 Tries to connect to a controller on a dummy port and checks that there is a failure.
void testConnectBadDB ()
 Tries to connect to a controller on a dummy DB and checks that there is a failure.
void testConnectBadUser ()
 Tries to connect to a controller with a dummy username and checks that the correct exception is thrown.
void testConnectBadPass ()
 Tries to connect to a controller with a dummy password and checks that the correct exception is thrown.
void testConnectGood ()
 Connects to a controller on a local machine (that must be running !) with the default port and checks everything went good.

Static Public Member Functions

static CppUnit::Test * suite ()
 Suite of tests to be run.


Detailed Description

Test class for connection establishement.

Tests connection establishment to bad address, bad port and finally to a running controller. A controller *MUST* run locally for test success !!!


The documentation for this class was generated from the following file:
Generated on Tue Oct 24 09:05:37 2006 for Carob by  doxygen 1.5.0