Operation mode changing related defects corrected.
[qtmeetings] / tests / TestQtMeetings.cpp
1 #include <QtTest/QtTest>
2 #include <QApplication>
3
4 // Domain
5 #include "TestRoom.h"
6 #include "TestMeeting.h"
7 #include "TestConnectionSettings.h"
8 #include "TestDisplaySettings.h"
9 #include "TestStartupSettings.h"
10 #include "TestConfiguration.h"
11
12 // Communication
13 // TODO : includes here
14
15 // DeviceControl
16 // TODO : includes here
17
18 // BusinessLogic
19 #include "TestClock.h"
20 #include "TestErrorMapper.h"
21 #include "TestEngine.h"
22
23 // UserInterface
24 #include "TestMeetingRoomCombo.h"
25
26 int main( int argc, char *argv[] )
27 {
28         QApplication app( argc, argv );
29
30         /************ Domain ************/
31         TestRoom testRoom;
32         QTest::qExec( &testRoom );
33
34         TestMeeting testMeeting;
35         QTest::qExec( &testMeeting );
36
37         TestConnectionSettings testConnectionSettings;
38         QTest::qExec( &testConnectionSettings );
39
40         TestDisplaySettings testDisplaySettings;
41         QTest::qExec( &testDisplaySettings );
42
43         TestStartupSettings testStartupSettings;
44         QTest::qExec( &testStartupSettings );
45
46         TestConfiguration testConfiguration;
47         QTest::qExec( &testConfiguration );
48
49         /************ Communication ************/
50         // TODO : tests here
51
52         /************ DeviceControl ************/
53         // TODO : tests here
54
55         /************ BusinessLogic ************/
56         TestClock testClock;
57         QTest::qExec( &testClock );
58
59         TestErrorMapper testErrorMapper;
60         QTest::qExec( &testErrorMapper );
61
62         TestEngine testEngine;
63         // TODO : TestEngine ends up in Segmentation fault for some reason if run together with other tests. Individually everything goes OK.
64 //      QTest::qExec( &testEngine );
65
66         /************ UserInterface ************/
67         TestMeetingRoomCombo testMeetingRoomCombo;
68         QTest::qExec( &testMeetingRoomCombo );
69 }