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 @Test
fun successfulQueryTest() { 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) mockServer.enqueue(MockResponse().setResponseCode(HttpURLConnection.HTTP_OK)
.addHeader(ApiUtils.CONTENT_TYPE_HEADER, "application/xml; charset=UTF-8") .addHeader(ApiUtils.CONTENT_TYPE_HEADER, "application/xml; charset=UTF-8")
@ -83,7 +83,7 @@ class LocalRSSDataSourceTest : KoinTest {
@Test @Test
fun headersTest() { 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) mockServer.enqueue(MockResponse().setResponseCode(HttpURLConnection.HTTP_OK)
.addHeader("Content-Type", "application/rss+xml; charset=UTF-8") .addHeader("Content-Type", "application/rss+xml; charset=UTF-8")

View File

@ -16,7 +16,7 @@ class RSS2AdapterTest {
@Test @Test
fun normalCasesTest() { 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 pair = adapter.fromXml(stream.konsumeXml())
val feed = pair.first 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>