comparison trajectorymanagement/test/DBSQLiteAccessTest.h @ 1159:e1e7acef8eab

moved trajectory management library into Traffic Intelligence
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Mon, 22 Feb 2021 22:09:35 -0500
parents
children
comparison
equal deleted inserted replaced
1158:7eb972942f22 1159:e1e7acef8eab
1 #ifndef DBSQLITEACCESSTEST_H_
2 #define DBSQLITEACCESSTEST_H_
3 #include <cppunit/extensions/HelperMacros.h>
4 #include <stdlib.h>
5 #include "../src/DBSQLiteAccess.h"
6 using namespace std;
7
8 class DBSQLiteAccessTest: public CPPUNIT_NS::TestCase
9 {
10 CPPUNIT_TEST_SUITE(DBSQLiteAccessTest);
11 CPPUNIT_TEST(testConnect1);
12 CPPUNIT_TEST(testConnect2);
13 CPPUNIT_TEST(testConnect3);
14 CPPUNIT_TEST(testConnect4);
15 CPPUNIT_TEST(testConnect5);
16 CPPUNIT_TEST(testDisconnect1);
17 CPPUNIT_TEST(testDisconnect2);
18 CPPUNIT_TEST(testDisconnect3);
19 CPPUNIT_TEST(testSqliteErrCodeMsg1);
20 CPPUNIT_TEST(testSqliteErrCodeMsg2);
21 CPPUNIT_TEST(testSqliteErrCodeMsg3);
22 CPPUNIT_TEST(testSqliteErrCodeMsg4);
23 CPPUNIT_TEST(testExecuteStatement1);
24 CPPUNIT_TEST(testExecuteStatement2);
25 CPPUNIT_TEST(testExecuteStatementGetMatrix);
26 CPPUNIT_TEST(testTransaction1);
27 CPPUNIT_TEST(testTransaction2);
28 CPPUNIT_TEST(testTransaction3);
29 CPPUNIT_TEST(testTransaction4);
30 CPPUNIT_TEST(testTransaction5);
31 CPPUNIT_TEST(testTransaction6);
32 CPPUNIT_TEST(testTransaction7);
33 CPPUNIT_TEST(testTransaction8);
34 CPPUNIT_TEST(testTransaction9);
35 CPPUNIT_TEST_SUITE_END();
36
37 public:
38 void setUp(void);
39 void tearDown(void);
40
41 protected:
42 void testConnect1(void);
43 void testConnect2(void);
44 void testConnect3(void);
45 void testConnect4(void);
46 void testConnect5(void);
47 void testDisconnect1(void);
48 void testDisconnect2(void);
49 void testDisconnect3(void);
50 void testSqliteErrCodeMsg1(void);
51 void testSqliteErrCodeMsg2(void);
52 void testSqliteErrCodeMsg3(void);
53 void testSqliteErrCodeMsg4(void);
54 void testExecuteStatement1(void);
55 void testExecuteStatement2(void);
56 void testExecuteStatementGetMatrix(void);
57 void testTransaction1(void);
58 void testTransaction2(void);
59 void testTransaction3(void);
60 void testTransaction4(void);
61 void testTransaction5(void);
62 void testTransaction6(void);
63 void testTransaction7(void);
64 void testTransaction8(void);
65 void testTransaction9(void);
66
67 private:
68 DBSQLiteAccess *db;
69 string dbName;
70 };
71
72 #endif /* DBSQLITEACCESSTEST_H_ */