19 lines
559 B
Kotlin
19 lines
559 B
Kotlin
package org.moire.ultrasonic.subsonic.loader.image
|
|
|
|
import android.net.Uri
|
|
import org.amshove.kluent.shouldEqualTo
|
|
import org.junit.Test
|
|
import org.junit.runner.RunWith
|
|
import org.robolectric.RobolectricTestRunner
|
|
|
|
@RunWith(RobolectricTestRunner::class)
|
|
class RequestCreatorTest {
|
|
@Test
|
|
fun `Should create valid load cover art request`() {
|
|
val entityId = "299"
|
|
val expectedUri = Uri.parse("$SCHEME://$AUTHORITY/$COVER_ART_PATH?id=$entityId")
|
|
|
|
createLoadCoverArtRequest(entityId).compareTo(expectedUri).shouldEqualTo(0)
|
|
}
|
|
}
|