mirror of https://github.com/readrops/Readrops.git
Fix LocalRSSHelper unit tests
This commit is contained in:
parent
5998fa9126
commit
de21a308b6
|
@ -1,6 +1,5 @@
|
||||||
package com.readrops.api.localfeed
|
package com.readrops.api.localfeed
|
||||||
|
|
||||||
import com.readrops.api.utils.UnknownFormatException
|
|
||||||
import junit.framework.TestCase.assertEquals
|
import junit.framework.TestCase.assertEquals
|
||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
import java.io.ByteArrayInputStream
|
import java.io.ByteArrayInputStream
|
||||||
|
@ -20,7 +19,7 @@ class LocalRSSHelperTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun nonStandardContentTypesTest() {
|
fun nonSupportedContentTypesTest() {
|
||||||
assertEquals(LocalRSSHelper.getRSSType("application/xml"),
|
assertEquals(LocalRSSHelper.getRSSType("application/xml"),
|
||||||
LocalRSSHelper.RSSType.UNKNOWN)
|
LocalRSSHelper.RSSType.UNKNOWN)
|
||||||
assertEquals(LocalRSSHelper.getRSSType("text/xml"),
|
assertEquals(LocalRSSHelper.getRSSType("text/xml"),
|
||||||
|
@ -29,10 +28,6 @@ class LocalRSSHelperTest {
|
||||||
LocalRSSHelper.RSSType.UNKNOWN)
|
LocalRSSHelper.RSSType.UNKNOWN)
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(expected = UnknownFormatException::class)
|
|
||||||
fun nonSupportedContentTypeTest() {
|
|
||||||
LocalRSSHelper.getRSSType("image/jpeg")
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun rssContentTest() {
|
fun rssContentTest() {
|
||||||
|
|
Loading…
Reference in New Issue