File indexing completed on 2024-04-21 15:03:01

0001 /*
0002     SPDX-FileCopyrightText: 2021 Alexander Lohnau <alexander.lohnau@gmx.de>
0003     SPDX-License-Identifier: LGPL-2.1-or-later
0004 */
0005 
0006 #include "kpluginmetadata_utils_p.h"
0007 #include <QTest>
0008 
0009 class TestMetaDataConversion : public QObject
0010 {
0011     Q_OBJECT
0012 
0013 private Q_SLOTS:
0014     void testMetaDataConversion()
0015     {
0016         const KPluginMetaData data = parseMetaDataFromDesktopFile(QFINDTESTDATA("plasma-runner-testconversionfile.desktop"));
0017         QVERIFY(data.isValid());
0018         QCOMPARE(data.pluginId(), "testconversionfile");
0019         QCOMPARE(data.name(), "DBus runner test");
0020         QCOMPARE(data.description(), "Some Comment");
0021     }
0022 };
0023 
0024 QTEST_MAIN(TestMetaDataConversion)
0025 
0026 #include "testmetadataconversion.moc"