File indexing completed on 2024-12-22 05:05:25
0001 /* 0002 SPDX-FileCopyrightText: 2020-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "resourceconverterclasstest.h" 0008 #include "../utils.h" 0009 #include "resourceconvertertest.h" 0010 #include <QTest> 0011 QTEST_MAIN(ResourceConverterClassTest) 0012 0013 ResourceConverterClassTest::ResourceConverterClassTest(QObject *parent) 0014 : QObject(parent) 0015 { 0016 } 0017 0018 void ResourceConverterClassTest::shouldGetAgentFileName() 0019 { 0020 ResourceConverterTest w; 0021 const QString filename = Utils::resourcesPath() + QStringLiteral("akonadi_imap_resource_0rc"); 0022 QCOMPARE(w.agentFileName(filename), QStringLiteral("resources/agent_config_akonadi_imap_resource_0")); 0023 } 0024 0025 #include "moc_resourceconverterclasstest.cpp"