[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kdepim/KDE/4.14] mailcommon/filter/autotests: Add more autotest
From:       Montel Laurent <montel () kde ! org>
Date:       2015-04-30 20:58:28
Message-ID: E1YnvXQ-0005N9-Gc () scm ! kde ! org
[Download RAW message or body]

Git commit 5b4596c9c37bdba00dd95fa5c12edd46beb25c34 by Montel Laurent.
Committed on 30/04/2015 at 20:57.
Pushed by mlaurent into branch 'KDE/4.14'.

Add more autotest

M  +11   -0    mailcommon/filter/autotests/mailfiltertest.cpp
M  +1    -0    mailcommon/filter/autotests/mailfiltertest.h

http://commits.kde.org/kdepim/5b4596c9c37bdba00dd95fa5c12edd46beb25c34

diff --git a/mailcommon/filter/autotests/mailfiltertest.cpp \
b/mailcommon/filter/autotests/mailfiltertest.cpp index 847a1ce..6dcbe5c 100644
--- a/mailcommon/filter/autotests/mailfiltertest.cpp
+++ b/mailcommon/filter/autotests/mailfiltertest.cpp
@@ -48,4 +48,15 @@ void MailFilterTest::shouldHaveDefaultValue()
 
 }
 
+void MailFilterTest::shouldApplySettings()
+{
+    MailCommon::MailFilter mailfilter;
+    bool value = true;
+    mailfilter.setApplyBeforeOutbound(value);
+    QCOMPARE(mailfilter.applyBeforeOutbound(), value);
+    value = false;
+    mailfilter.setApplyBeforeOutbound(value);
+    QCOMPARE(mailfilter.applyBeforeOutbound(), value);
+}
+
 QTEST_KDEMAIN(MailFilterTest, GUI)
diff --git a/mailcommon/filter/autotests/mailfiltertest.h \
b/mailcommon/filter/autotests/mailfiltertest.h index f5ce18f..3f690b9 100644
--- a/mailcommon/filter/autotests/mailfiltertest.h
+++ b/mailcommon/filter/autotests/mailfiltertest.h
@@ -28,6 +28,7 @@ public:
     ~MailFilterTest();
 private Q_SLOTS:
     void shouldHaveDefaultValue();
+    void shouldApplySettings();
 };
 
 #endif // MAILFILTERTEST_H


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic