-
Notifications
You must be signed in to change notification settings - Fork 0
/
testsuite.h
76 lines (67 loc) · 1.75 KB
/
testsuite.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#ifndef TESTSUITE_H
#define TESTSUITE_H
#include "View/loginwindow.h"
#include <Model/documententity.h>
#include <Model/documentmodel.h>
#include <View/librarianwindow.h>
#include <Model/usermodel.h>
#include <Model/usermodelentity.h>
#include<Model/librariancopymodel.h>
#include <QApplication>
#include <QDebug>
#include <Data/documentdataproxy.h>
#include <cassert>
#include <QTableView>
#include "View/usermodelview.h"
#include "View/adduserdialog.h"
#include "Model/documententity.h"
#include "Controller/usermanagerwidget.h"
#include "Model/documentmodel.h"
#include "View/adddialog_av.h"
#include "View/prevdocumentview.h"
#include <Controller/documentmanagerwidget.h>
#include "Model/documentmodel.h"
#include "View/adddialog_book.h"
#include <Controller/librariancopymanager.h>
#include <Controller/usercopymanager.h>
#include<View/userwindow.h>
#include <QFile>
#include <QTextStream>
class TestSuite{
private:
Book *d1 , *d2 , *d3;
User *p1 , *p2 , *p3 , *s , *v;
Librarian *l1 , *l2 , *l3;
Admin *admin;
QDate testsDate;
DocumentDataProxy *docProxy;
UserDataProxy *userProxy;
Copy *c1 , *c2 , *c3 , *c4 , *c5 , *c6 , *c7 , *c8 , *c9;
// UserModel *userModel;
// DocumentModel *docModel;
// LibrarianCopyModel *copyModel;
bool look_in(QList < Document* > v , Document *doc);
bool look_in(QList < User* > v , User *u);
bool look_in(QList < Copy* > v , Copy *copy);
public:
void init();
void TC1();
void TC2();
void TC3();
void TC4();
void TC5();
void TC6();
void TC7();
void TC8();
void TC9();
void TC10();
void TC11();
void TC12();
void TC13();
void TC14();
void mytest();
void runnall();
void clear();
TestSuite();
};
#endif // TESTSUITE_H