File indexing completed on 2024-12-01 04:35:22

0001 /*
0002    SPDX-FileCopyrightText: 2019-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #include "convertertextabstractjobtest.h"
0008 #include "convertertextjob/convertertextabstractjob.h"
0009 #include <QTest>
0010 class ConverterTextAbstractJobImpl : public ConverterTextAbstractJob
0011 {
0012 public:
0013     explicit ConverterTextAbstractJobImpl(QObject *parent = nullptr)
0014         : ConverterTextAbstractJob(nullptr, parent)
0015     {
0016     }
0017 
0018     void start() override
0019     {
0020     }
0021 };
0022 
0023 QTEST_GUILESS_MAIN(ConverterTextAbstractJobTest)
0024 
0025 ConverterTextAbstractJobTest::ConverterTextAbstractJobTest(QObject *parent)
0026     : QObject(parent)
0027 {
0028 }
0029 
0030 void ConverterTextAbstractJobTest::shouldHaveDefaultValue()
0031 {
0032     ConverterTextAbstractJobImpl job;
0033     QVERIFY(job.messageId().isEmpty());
0034     QVERIFY(!job.rocketChatAcount());
0035 }
0036 
0037 #include "moc_convertertextabstractjobtest.cpp"