FactDev  0.1
contributoriesdatabasetest.h
1 #ifndef CONTRIBUTORIESDATABASETEST_H
2 #define CONTRIBUTORIESDATABASETEST_H
3 #include <QtTest/QtTest>
4 #include "QTestRunner/testrunner.h"
5 
6 #include "models/contributory.h"
7 
8 using namespace Models;
9 class ContributoriesDatabaseTest : public QObject
10 {
11  Q_OBJECT
12 public:
14 
15 private slots:
16  void getContributoriesByBilling();
17  void insert();
18  void remove();
19  void update();
20  void selectContributoryNotFound();
21  void selectContributoryFound();
22 private:
23  Contributory* c1;
24  int _lastInsert;
25 
26  void setup();
27 };
28 DECLARE_TEST(ContributoriesDatabaseTest)
29 
30 #endif // CONTRIBUTORIESDATABASETEST_H
The Unit enum Unity of work : hour or day.
Definition: contributory.h:18
Definition: contributoriesdatabasetest.h:9