FOSSology
4.4.0
Open Source License Compliance by Open Source Software
|
Test cases for CPP DB Manager. More...
Public Member Functions | |
FoLibCPPTest (const FoLibCPPTest &obj) | |
void | setUp () |
void | tearDown () |
void | test_runCommandQueryCheckIfSuccess () |
void | test_tableExists () |
void | test_runSimpleQuery () |
void | test_runPreparedStatement () |
void | test_transactions () |
void | test_runBadCommandQueryCheckIfError () |
void | test_runSchedulerConnectConstructor () |
Private Member Functions | |
CPPUNIT_TEST_SUITE (FoLibCPPTest) | |
CPPUNIT_TEST (test_runSimpleQuery) | |
CPPUNIT_TEST (test_runCommandQueryCheckIfSuccess) | |
CPPUNIT_TEST (test_tableExists) | |
CPPUNIT_TEST (test_runPreparedStatement) | |
CPPUNIT_TEST (test_transactions) | |
CPPUNIT_TEST (test_runBadCommandQueryCheckIfError) | |
CPPUNIT_TEST (test_runSchedulerConnectConstructor) | |
CPPUNIT_TEST_SUITE_END () | |
Private Attributes | |
fo::DbManager * | dbManager |
Object for DbManager. | |
Test cases for CPP DB Manager.
Definition at line 31 of file test_fossdbmanagerclass.cc.
|
inline |
One time setup to create test environment and get new DbManager
Definition at line 51 of file test_fossdbmanagerclass.cc.
|
inline |
Tear down to destroy DbManager object and test environment
Definition at line 58 of file test_fossdbmanagerclass.cc.
|
inline |
Test to check bad query
Definition at line 233 of file test_fossdbmanagerclass.cc.
|
inline |
Test to check if simple query executes successfully
Definition at line 71 of file test_fossdbmanagerclass.cc.
|
inline |
Test to check fo::DbManager::execPrepared() function
Definition at line 140 of file test_fossdbmanagerclass.cc.
|
inline |
Test to check if DbManager can create connection with scheduler connect
argv
argv
.Definition at line 255 of file test_fossdbmanagerclass.cc.
|
inline |
Test to check fo::QueryResult::getSimpleResults() function
Definition at line 106 of file test_fossdbmanagerclass.cc.
|
inline |
Test to check fo::DbManager::tableExists() function
Definition at line 88 of file test_fossdbmanagerclass.cc.
|
inline |
Test to check transaction functions
Definition at line 183 of file test_fossdbmanagerclass.cc.