TestParameterStatement Class Reference

Test class for Statement class. More...

#include <TestParameterStatement.hpp>

Inheritance diagram for TestParameterStatement:

ConnectionSetup List of all members.

Public Member Functions

void testExecuteQueryLessParams ()
 Tries to execute a query with not all params set.
void testExecuteQueryGood ()
 Sends a valid select request to the controller via a Statement and checks that there is no error.
void testExecuteUpdateBadParams ()
 Tries to bind a parameter to a non existing one.
void testExecuteUpdateGood ()
 Sends a valid update request to the controller via a Statement and checks that there is no error.
void testExecuteBadRequests ()
 Tests execute function with bad query of different forms (bad query, wrong table).
void testExecuteWithSelect ()
 Tests execute function with a select statement.
void testExecuteWithUpdate ()
 Tests execute function with an update statement.
void testBoolean ()
 Tests setBoolean function by sending a write request within a parameter statement and checking that the value read back is the original one.
void testStrings ()
 Tests setString function by sending a write request within a parameter statement and checking that the value read back is the original one.
void testBigDecimal ()
 Tests setBigDecimal function by sending a write request within a parameter statement and checking that the value read back is the original one.
void testSetNull ()
 Tests setNull function.

Static Public Member Functions

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

Detailed Description

Test class for Statement class.

This is basically a copy of exec read and exec write commands testing A controller *MUST* run locally for test success !!!


Member Function Documentation

void TestParameterStatement::testExecuteQueryGood (  ) 

Sends a valid select request to the controller via a Statement and checks that there is no error.

Also displays a part of the result for manual checking.

void TestParameterStatement::testExecuteUpdateBadParams (  ) 

Tries to bind a parameter to a non existing one.

checks that the error is consistent.


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