From b76ffb4fc6becf28f7e68a3cec142d2423ce9ef0 Mon Sep 17 00:00:00 2001 From: Shinokuni Date: Sat, 4 Sep 2021 18:22:44 +0200 Subject: [PATCH] Remove unused RSS resource --- .../readrops/api/localfeed/LocalRSSDataSourceTest.kt | 4 ++-- .../com/readrops/api/localfeed/rss2/RSS2AdapterTest.kt | 2 +- .../test/resources/localfeed/{ => rss2}/rss_feed.xml | 0 .../test/resources/localfeed/rss2/rss_full_feed.xml | 10 ---------- 4 files changed, 3 insertions(+), 13 deletions(-) rename api/src/test/resources/localfeed/{ => rss2}/rss_feed.xml (100%) delete mode 100644 api/src/test/resources/localfeed/rss2/rss_full_feed.xml diff --git a/api/src/test/java/com/readrops/api/localfeed/LocalRSSDataSourceTest.kt b/api/src/test/java/com/readrops/api/localfeed/LocalRSSDataSourceTest.kt index 495ba5e3..cd508506 100644 --- a/api/src/test/java/com/readrops/api/localfeed/LocalRSSDataSourceTest.kt +++ b/api/src/test/java/com/readrops/api/localfeed/LocalRSSDataSourceTest.kt @@ -59,7 +59,7 @@ class LocalRSSDataSourceTest : KoinTest { @Test fun successfulQueryTest() { - val stream = TestUtils.loadResource("localfeed/rss_feed.xml") + val stream = TestUtils.loadResource("localfeed/rss2/rss_feed.xml") mockServer.enqueue(MockResponse().setResponseCode(HttpURLConnection.HTTP_OK) .addHeader(ApiUtils.CONTENT_TYPE_HEADER, "application/xml; charset=UTF-8") @@ -83,7 +83,7 @@ class LocalRSSDataSourceTest : KoinTest { @Test fun headersTest() { - val stream = TestUtils.loadResource("localfeed/rss_feed.xml") + val stream = TestUtils.loadResource("localfeed/rss2/rss_feed.xml") mockServer.enqueue(MockResponse().setResponseCode(HttpURLConnection.HTTP_OK) .addHeader("Content-Type", "application/rss+xml; charset=UTF-8") diff --git a/api/src/test/java/com/readrops/api/localfeed/rss2/RSS2AdapterTest.kt b/api/src/test/java/com/readrops/api/localfeed/rss2/RSS2AdapterTest.kt index ee9bf990..5d03a336 100644 --- a/api/src/test/java/com/readrops/api/localfeed/rss2/RSS2AdapterTest.kt +++ b/api/src/test/java/com/readrops/api/localfeed/rss2/RSS2AdapterTest.kt @@ -16,7 +16,7 @@ class RSS2AdapterTest { @Test fun normalCasesTest() { - val stream = TestUtils.loadResource("localfeed/rss_feed.xml") + val stream = TestUtils.loadResource("localfeed/rss2/rss_feed.xml") val pair = adapter.fromXml(stream.konsumeXml()) val feed = pair.first diff --git a/api/src/test/resources/localfeed/rss_feed.xml b/api/src/test/resources/localfeed/rss2/rss_feed.xml similarity index 100% rename from api/src/test/resources/localfeed/rss_feed.xml rename to api/src/test/resources/localfeed/rss2/rss_feed.xml diff --git a/api/src/test/resources/localfeed/rss2/rss_full_feed.xml b/api/src/test/resources/localfeed/rss2/rss_full_feed.xml deleted file mode 100644 index e56ad91b..00000000 --- a/api/src/test/resources/localfeed/rss2/rss_full_feed.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - Hacker News - - - https://news.ycombinator.com/ - Links for the intellectually curious, ranked by readers. - - \ No newline at end of file