comparison ui/tests/mainwindowtest.h @ 559:dd8a295d5b4d

Add framework for mainwindow testing
author Andre Heinecke <aheinecke@intevation.de>
date Thu, 22 May 2014 10:20:45 +0000
parents
children 2fd4f9980a2a
comparison
equal deleted inserted replaced
558:bde15f68942b 559:dd8a295d5b4d
1 /* Copyright (C) 2014 by Bundesamt für Sicherheit in der Informationstechnik
2 * Software engineering by Intevation GmbH
3 *
4 * This file is Free Software under the GNU GPL (v>=2)
5 * and comes with ABSOLUTELY NO WARRANTY!
6 * See LICENSE.txt for details.
7 */
8 #ifndef MAINWINDOWTEST_H
9 #define MAINWINDOWTEST_H
10
11 #include <QObject>
12 #include <QtTest>
13 #include "mainwindow.h"
14
15 class MainWindowTest: public MainWindow
16 {
17 Q_OBJECT
18
19 public:
20 MainWindowTest();
21
22 protected slots:
23 void closeApp();
24
25 private Q_SLOTS:
26 void testInvalidUpdate();
27 void testValidUpdate();
28
29 Q_SIGNALS:
30 void closeCalled();
31 };
32
33 #endif // MAINWINDOWTEST_H

http://wald.intevation.org/projects/trustbridge/