Fix LocalRSSHelper unit tests

This commit is contained in:
Shinokuni 2020-09-20 18:22:53 +02:00
parent 5998fa9126
commit de21a308b6

View File

@ -1,6 +1,5 @@
package com.readrops.api.localfeed
import com.readrops.api.utils.UnknownFormatException
import junit.framework.TestCase.assertEquals
import org.junit.Test
import java.io.ByteArrayInputStream
@ -20,7 +19,7 @@ class LocalRSSHelperTest {
}
@Test
fun nonStandardContentTypesTest() {
fun nonSupportedContentTypesTest() {
assertEquals(LocalRSSHelper.getRSSType("application/xml"),
LocalRSSHelper.RSSType.UNKNOWN)
assertEquals(LocalRSSHelper.getRSSType("text/xml"),
@ -29,10 +28,6 @@ class LocalRSSHelperTest {
LocalRSSHelper.RSSType.UNKNOWN)
}
@Test(expected = UnknownFormatException::class)
fun nonSupportedContentTypeTest() {
LocalRSSHelper.getRSSType("image/jpeg")
}
@Test
fun rssContentTest() {