#include <TestConnect.hpp>
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. |
Tests connection establishment to bad address, bad port and finally to a running controller. A controller *MUST* run locally for test success !!!