Fix LocalRSSHelper unit tests

This commit is contained in:
Shinokuni 2020-09-20 18:22:53 +02:00
parent 5998fa9126
commit de21a308b6
1 changed files with 1 additions and 6 deletions

View File

@ -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() {