diff ui/tests/downloadertest.h @ 43:5910bf9016cd

Add Downloadertest
author Andre Heinecke <aheinecke@intevation.de>
date Fri, 14 Mar 2014 15:25:47 +0000
parents
children c6125d73faf4
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ui/tests/downloadertest.h	Fri Mar 14 15:25:47 2014 +0000
@@ -0,0 +1,30 @@
+#ifndef DOWNLOADERTEST_H
+#define DOWNLOADERTEST_H
+
+#include <QObject>
+#include <QtTest/QtTest>
+#include <QProcess>
+#include <QTemporaryDir>
+#include <QSignalSpy>
+#include "downloader.h"
+
+class DownloaderTest: public QObject
+{
+    Q_OBJECT
+
+    void startServer(QString additionalOptions = QString());
+
+private:
+    QProcess serverProc;
+    QTemporaryDir serverConfigDir;
+
+public Q_SLOTS:
+    void downloaderError(const QString &message, Downloader::ErrorCode error);
+
+private Q_SLOTS:
+    void initTestCase();
+    void cleanupTestCase();
+    void testNewList();
+};
+#endif
+

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