ConnectionSetup Class Reference

Test super class for running tests on a valid connection to a controller. More...

#include <ConnectionSetup.hpp>

Inheritance diagram for ConnectionSetup:

TestBeginCommitRollback TestBigDecimal TestDriverResultSet TestExec TestExecReadRequest TestExecWriteRequest TestIEEE754 TestParameterStatement TestPreparedStatement TestSimpleUnicode List of all members.

Public Member Functions

virtual void setUp ()
 Creates the connection and connects to the running local controller.
virtual void tearDown ()
 Destroys the connection if applicable.
void testConnection ()
 Probably throws or at least logs errors if connection has been left in a corrupted state by some test.

Public Attributes

CarobNS::ConnectionconnectionPtr
 Valid connection on which data transferts are to be done.

Static Public Attributes

static const std::wstring & DEFAULT_HOST1
 Default first controller host used for the tests.
static const std::wstring & DEFAULT_HOST2
 Default controller host #2 used for the tests.
static const int DEFAULT_PORT1
 Default first controller port used for the tests.
static const int DEFAULT_PORT2
 Default controller port #2 used for the tests.
static const std::wstring & DEFAULT_DB
 Default vdb used for the tests.
static const std::wstring & DEFAULT_USER
 Default vdb user for the tests.
static const std::wstring & DEFAULT_PASSWD
 Default vdb password for the tests.
static const CarobNS::ConnectPolicy DEFAULT_POLICY
 Default vdb policy for the tests.
static const int DEFAULT_PING_DELAY
 Default ping delay in milliseconds.
static const int DEFAULT_CONTROLLER_TIMEOUT
 Default controller timeout in milliseconds.
static const bool DEFAULT_CONNECTION_PERSISTENCY
 Default connection persistency.
static const bool DEFAULT_RETRIEVE_SQL_WARNINGS
 Default retrieval of sql warnings.

Detailed Description

Test super class for running tests on a valid connection to a controller.

Defines setUp() and tearDown() functions to connect to a controller (by default: host "localhost", db "myDB", user "user", etc. Modify default ctor below or even ConnectionSetup.cpp according to your needs.

Derive this class to get connected to a controller for free. No testing is done here! A controller *MUST* be running at the given address for test success.


The documentation for this class was generated from the following file:
Generated on Fri Mar 9 17:40:19 2007 for Carob by  doxygen 1.4.7