File indexing completed on 2024-12-22 05:01:11
0001 /* 0002 SPDX-FileCopyrightText: 2020-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #include "createreplymessagejobtest.h" 0008 #include "job/createreplymessagejob.h" 0009 #include <QTest> 0010 QTEST_MAIN(CreateReplyMessageJobTest) 0011 0012 CreateReplyMessageJobTest::CreateReplyMessageJobTest(QObject *parent) 0013 : QObject(parent) 0014 { 0015 } 0016 0017 void CreateReplyMessageJobTest::shouldHaveDefaultValue() 0018 { 0019 CreateReplyMessageJobSettings settings; 0020 QVERIFY(settings.url.isEmpty()); 0021 QVERIFY(settings.selection.isEmpty()); 0022 QVERIFY(settings.templateStr.isEmpty()); 0023 QVERIFY(!settings.msg); 0024 QVERIFY(!settings.noQuote); 0025 QVERIFY(!settings.replyAsHtml); 0026 QCOMPARE(settings.replyStrategy, MessageComposer::ReplySmart); 0027 } 0028 0029 #include "moc_createreplymessagejobtest.cpp"