summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-10-24 08:17:37 +0200
committerMontel Laurent <[email protected]>2017-10-24 08:17:37 +0200
commitf520633e3320cef269e3f287405a447d31404508 (patch)
tree3f983a7958d13e251b6153c7f974eafb186e149a
parentc25e380dac756fda62640f235b1f16fa0b21b795 (diff)
Start to create autotest
-rw-r--r--src/CMakeLists.txt1
-rw-r--r--src/editor/warningwidgets/autotests/CMakeLists.txt0
-rw-r--r--src/editor/warningwidgets/autotests/incorrectidentityfolderwarningtest.cpp31
-rw-r--r--src/editor/warningwidgets/autotests/incorrectidentityfolderwarningtest.h33
4 files changed, 65 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index f3912ef..04da3a6 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -380,6 +380,7 @@ if(BUILD_TESTING)
add_subdirectory(tests)
add_subdirectory(folderarchive/autotests/)
add_subdirectory(editor/potentialphishingemail/autotests)
+ add_subdirectory(editor/warningwidgets/autotests)
add_subdirectory(sieveimapinterface/tests/)
endif()
########### install files ###############
diff --git a/src/editor/warningwidgets/autotests/CMakeLists.txt b/src/editor/warningwidgets/autotests/CMakeLists.txt
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/src/editor/warningwidgets/autotests/CMakeLists.txt
diff --git a/src/editor/warningwidgets/autotests/incorrectidentityfolderwarningtest.cpp b/src/editor/warningwidgets/autotests/incorrectidentityfolderwarningtest.cpp
new file mode 100644
index 0000000..829434c
--- /dev/null
+++ b/src/editor/warningwidgets/autotests/incorrectidentityfolderwarningtest.cpp
@@ -0,0 +1,31 @@
+/*
+ Copyright (C) 2017 Montel Laurent <[email protected]>
+
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; see the file COPYING. If not, write to
+ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
+*/
+
+
+#include "incorrectidentityfolderwarningtest.h"
+#include "../incorrectidentityfolderwarning.h"
+#include <QTest>
+
+QTEST_MAIN(IncorrectIdentityFolderWarningTest)
+
+IncorrectIdentityFolderWarningTest::IncorrectIdentityFolderWarningTest(QObject *parent)
+ : QObject(parent)
+{
+
+}
diff --git a/src/editor/warningwidgets/autotests/incorrectidentityfolderwarningtest.h b/src/editor/warningwidgets/autotests/incorrectidentityfolderwarningtest.h
new file mode 100644
index 0000000..5bbce3e
--- /dev/null
+++ b/src/editor/warningwidgets/autotests/incorrectidentityfolderwarningtest.h
@@ -0,0 +1,33 @@
+/*
+ Copyright (C) 2017 Montel Laurent <[email protected]>
+
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; see the file COPYING. If not, write to
+ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
+*/
+
+#ifndef INCORRECTIDENTITYFOLDERWARNINGTEST_H
+#define INCORRECTIDENTITYFOLDERWARNINGTEST_H
+
+#include <QObject>
+
+class IncorrectIdentityFolderWarningTest : public QObject
+{
+ Q_OBJECT
+public:
+ explicit IncorrectIdentityFolderWarningTest(QObject *parent = nullptr);
+ ~IncorrectIdentityFolderWarningTest() = default;
+};
+
+#endif // INCORRECTIDENTITYFOLDERWARNINGTEST_H