FactDev  0.1
customerdatabasetest.h
1 #ifndef CUSTOMERDATABASETEST_H
2 #define CUSTOMERDATABASETEST_H
3 #include <QtTest/QtTest>
4 #include "QTestRunner/testrunner.h"
5 
6 #include "models/customer.h"
7 
8 using namespace Models;
9 class CustomerDatabaseTest : public QObject
10 {
11  Q_OBJECT
12 public:
14 private slots:
15  void insert();
16  void remove();
17  void update();
18  void selectCustomerNotFound();
19  void selectCustomerFound();
20  void getCustomerTableException();
21  void getNbCustomersTest();
22  void getCustomers();
23  void getTreeException();
24  void imageTest();
25 private:
26  Customer c1;
27  int _lastInsert;
28 };
29 
30 DECLARE_TEST(CustomerDatabaseTest)
31 
32 #endif // CUSTOMERDATABASETEST_H
Definition: customerdatabasetest.h:9
The Customer class Customer.
Definition: customer.h:15