File indexing completed on 2025-01-05 04:58:20

0001 /*
0002   SPDX-FileCopyrightText: 2015-2024 Laurent Montel <montel@kde.org>
0003 
0004   SPDX-License-Identifier: LGPL-2.0-or-later
0005 
0006 */
0007 #include "blacklistbalooemailsearchjobtest.h"
0008 #include "../blacklistbalooemailsearchjob.h"
0009 #include <QTest>
0010 
0011 BlackListBalooEmailSearchJobTest::BlackListBalooEmailSearchJobTest(QObject *parent)
0012     : QObject(parent)
0013 {
0014 }
0015 
0016 BlackListBalooEmailSearchJobTest::~BlackListBalooEmailSearchJobTest() = default;
0017 
0018 void BlackListBalooEmailSearchJobTest::shouldNotSearchWhenTextIsEmpty()
0019 {
0020     auto job = new PimCommon::BlackListBalooEmailSearchJob;
0021     QVERIFY(!job->start());
0022 }
0023 
0024 QTEST_MAIN(BlackListBalooEmailSearchJobTest)
0025 
0026 #include "moc_blacklistbalooemailsearchjobtest.cpp"