mirror of https://github.com/readrops/Readrops.git
Remove unused RSS resource
This commit is contained in:
parent
8aec040fbc
commit
b76ffb4fc6
|
@ -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")
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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>
|
|
Loading…
Reference in New Issue