diff ui/tests/cinstprocesstest.h @ 100:8fa273791242

Add test for cinstprocess
author Andre Heinecke <aheinecke@intevation.de>
date Fri, 21 Mar 2014 12:15:29 +0000
parents
children f5fa39347366
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ui/tests/cinstprocesstest.h	Fri Mar 21 12:15:29 2014 +0000
@@ -0,0 +1,33 @@
+#ifndef CINSTPROCESSTEST_H
+#define CINSTPROCESSTEST_H
+
+/* @file Tests for the cinst process
+ * @brief Tests for the cinst process as well as the UI side
+ */
+
+#include <QObject>
+#include <QProcess>
+#include "certificatelist.h"
+
+class CinstProcessTest: public QObject
+{
+    Q_OBJECT
+
+private:
+    QProcess* startCinstProcess();
+    CertificateList validList;
+    CertificateList otherList;
+    CertificateList invalidList;
+
+private Q_SLOTS:
+    void initTestCase();
+    void testValidInput();
+    void testInvalidInstruction();
+    void testNoInput();
+    void testNoList();
+    void testGarbageInput();
+    void testNoInstructions();
+};
+#endif
+
+

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