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.

Static Public Attributes

static const std::wstring DEFAULT_HOST
 Default controller host used for the tests.
static const int DEFAULT_PORT
 Default controller port used for the tests.

Protected Attributes

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

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 Tue Oct 24 09:05:37 2006 for Carob by  doxygen 1.5.0