/* This file is part of the KDE KFileMetaData project SPDX-FileCopyrightText: 2014 Vishesh Handa SPDX-FileCopyrightText: 2017 Igor Poboiko SPDX-FileCopyrightText: 2019 Alexander Stippich SPDX-License-Identifier: LGPL-2.1-or-later */ #include #include #include #include "writercollection.h" namespace KFileMetaData { class WriterCollectionTest : public QObject { Q_OBJECT private Q_SLOTS: void testFetchWriters() { QCoreApplication::setLibraryPaths({QCoreApplication::applicationDirPath()}); WriterCollection collection; QVERIFY(collection.fetchWriters(QStringLiteral("unknown/mimetype")).isEmpty()); QVERIFY(!collection.fetchWriters(QStringLiteral("audio/mpeg")).isEmpty()); } }; } QTEST_GUILESS_MAIN(KFileMetaData::WriterCollectionTest) #include "writercollectiontest.moc"