File indexing completed on 2024-12-22 04:12:55
0001 /* 0002 * SPDX-FileCopyrightText: 2019 Anna Medonosova <anna.medonosova@gmail.com> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "KisRssReaderTest.h" 0008 #include <KisRssReader.h> 0009 #include <simpletest.h> 0010 #include <testutil.h> 0011 #include <QFile> 0012 0013 KisRssReaderTest::KisRssReaderTest(QObject *parent) : QObject(parent) 0014 { 0015 0016 } 0017 0018 void KisRssReaderTest::testParseData() 0019 { 0020 KisRssReader reader; 0021 QFile rssFile(TestUtil::fetchDataFileLazy("rss_feeds/feed.xml")); 0022 0023 RssItemList itemList = reader.parse(rssFile); 0024 0025 QCOMPARE(itemList.count(), 10); 0026 0027 } 0028 0029 SIMPLE_TEST_MAIN(KisRssReaderTest);