Commit 7d368e82 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add autotest

parent 79b25208
......@@ -2,7 +2,7 @@ macro(add_kmail_job_unittest _source)
get_filename_component(_name ${_source} NAME_WE)
ecm_add_test(${_source}
TEST_NAME ${_name}
LINK_LIBRARIES kmailprivate Qt5::Test Qt5::Widgets
LINK_LIBRARIES kmailprivate Qt5::Test Qt5::Widgets KF5::AkonadiCore
)
endmacro ()
......
......@@ -18,6 +18,7 @@
*/
#include "createreplymessagejobtest.h"
#include "job/createreplymessagejob.h"
#include <QTest>
QTEST_MAIN(CreateReplyMessageJobTest)
......@@ -29,5 +30,12 @@ CreateReplyMessageJobTest::CreateReplyMessageJobTest(QObject *parent)
void CreateReplyMessageJobTest::shouldHaveDefaultValue()
{
//TODO
CreateReplyMessageJobSettings settings;
QVERIFY(settings.mUrl.isEmpty());
QVERIFY(settings.mSelection.isEmpty());
QVERIFY(settings.mTemplate.isEmpty());
QVERIFY(!settings.mMsg);
QVERIFY(!settings.mNoQuote);
QVERIFY(!settings.mReplyAsHtml);
QCOMPARE(settings.m_replyStrategy, MessageComposer::ReplySmart);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment