Remove unused RSS resource

This commit is contained in:
Shinokuni 2021-09-04 18:22:44 +02:00
parent 8aec040fbc
commit b76ffb4fc6
4 changed files with 3 additions and 13 deletions

View File

@ -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")

View File

@ -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

View File

@ -1,10 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
<channel>
<title>Hacker News</title>
<atom:link href="https://news.ycombinator.com/feed/" rel="self" />
<atom:link href="https://news.ycombinator.com/hub" rel="hub" />
<link>https://news.ycombinator.com/</link>
<description>Links for the intellectually curious, ranked by readers.</description>
</channel>
</rss>