summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-10-27 05:01:04 (GMT)
committerMontel Laurent <montel@kde.org>2016-10-27 05:01:04 (GMT)
commitf534ff26af4c77dfeb960d4819b7825202c7a528 (patch)
tree94ff53aef615e16af97e9a03c808bfea1eeff5e2
parent1518beca32293b8518008532102f25f862321479 (diff)
Add more autotest
-rw-r--r--messageviewer/src/checkphishingurl/autotests/checkphishingurljobtest.cpp7
-rw-r--r--messageviewer/src/checkphishingurl/autotests/checkphishingurljobtest.h2
2 files changed, 9 insertions, 0 deletions
diff --git a/messageviewer/src/checkphishingurl/autotests/checkphishingurljobtest.cpp b/messageviewer/src/checkphishingurl/autotests/checkphishingurljobtest.cpp
index 5b1b12a..432f165 100644
--- a/messageviewer/src/checkphishingurl/autotests/checkphishingurljobtest.cpp
+++ b/messageviewer/src/checkphishingurl/autotests/checkphishingurljobtest.cpp
@@ -18,6 +18,7 @@
*/
#include "checkphishingurljobtest.h"
+#include "../checkphishingurljob.h"
#include <QTest>
@@ -32,4 +33,10 @@ CheckPhishingUrlJobTest::~CheckPhishingUrlJobTest()
}
+void CheckPhishingUrlJobTest::shouldNotBeAbleToStartWithEmptyUrl()
+{
+ MessageViewer::CheckPhishingUrlJob job;
+ QVERIFY(!job.canStart());
+}
+
QTEST_MAIN(CheckPhishingUrlJobTest)
diff --git a/messageviewer/src/checkphishingurl/autotests/checkphishingurljobtest.h b/messageviewer/src/checkphishingurl/autotests/checkphishingurljobtest.h
index 491cd0b..61fd206 100644
--- a/messageviewer/src/checkphishingurl/autotests/checkphishingurljobtest.h
+++ b/messageviewer/src/checkphishingurl/autotests/checkphishingurljobtest.h
@@ -28,6 +28,8 @@ class CheckPhishingUrlJobTest : public QObject
public:
explicit CheckPhishingUrlJobTest(QObject *parent = Q_NULLPTR);
~CheckPhishingUrlJobTest();
+private Q_SLOTS:
+ void shouldNotBeAbleToStartWithEmptyUrl();
};
#endif // CHECKPHISHINGURLJOBTEST_H