FactDev  0.1
projectdatabasetest.h
1 #ifndef PROJECTDATABASETEST_H
2 #define PROJECTDATABASETEST_H
3 
4 #include <QObject>
5 #include <QtTest/QtTest>
6 #include "QTestRunner/testrunner.h"
7 #include "models/project.h"
8 class ProjectDatabaseTest : public QObject
9 {
10  Q_OBJECT
11 
12 public:
14 
15 private slots:
16  void insert();
17  void remove();
18  void update();
19  void selectCustomerNotFound();
20  void selectCustomerFound();
21  void getNbProjects();
22  void getNbProjectsForACustomer();
23  void getAllProjectsTest();
24  void getCostProjectTest();
25  void getProjectOfCustomer();
26 private:
27  Models::Project p1;
28  int _lastInsert;
29 };
30 
31 DECLARE_TEST(ProjectDatabaseTest)
32 
33 #endif // PROJECTDATABASETEST_H
The Project class : Project linked to a Customer.
Definition: project.h:17
Definition: projectdatabasetest.h:8