#include <TestParameterStatement.hpp>
Inheritance diagram for TestParameterStatement:
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. |
This is basically a copy of exec read and exec write commands testing A controller *MUST* run locally for test success !!!
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.