diff --git a/pillarbox-core-business/src/test/java/ch/srgssr/pillarbox/core/business/MediaCompositionMediaItemSourceTest.kt b/pillarbox-core-business/src/test/java/ch/srgssr/pillarbox/core/business/MediaCompositionMediaItemSourceTest.kt index 9056c80bb..8be4ebb2d 100644 --- a/pillarbox-core-business/src/test/java/ch/srgssr/pillarbox/core/business/MediaCompositionMediaItemSourceTest.kt +++ b/pillarbox-core-business/src/test/java/ch/srgssr/pillarbox/core/business/MediaCompositionMediaItemSourceTest.kt @@ -8,7 +8,7 @@ import androidx.media3.common.MediaItem import androidx.media3.common.MediaMetadata import ch.srgssr.pillarbox.core.business.exception.BlockReasonException import ch.srgssr.pillarbox.core.business.exception.ResourceNotFoundException -import ch.srgssr.pillarbox.core.business.images.DefaultImageScalingService +import ch.srgssr.pillarbox.core.business.images.ImageScalingService import ch.srgssr.pillarbox.core.business.integrationlayer.data.BlockReason import ch.srgssr.pillarbox.core.business.integrationlayer.data.Chapter import ch.srgssr.pillarbox.core.business.integrationlayer.data.MediaComposition @@ -23,7 +23,7 @@ class MediaCompositionMediaItemSourceTest { private val mediaItemSource = MediaCompositionMediaItemSource( mediaCompositionDataSource = DummyMediaCompositionProvider(), - imageScalingService = DefaultImageScalingService() + imageScalingService = NoOpImageScalingService() ) @Test(expected = IllegalArgumentException::class) @@ -186,6 +186,12 @@ class MediaCompositionMediaItemSourceTest { } } + private class NoOpImageScalingService : ImageScalingService { + override fun getScaledImageUrl(imageUrl: String, width: ImageScalingService.ImageWidth, format: ImageScalingService.ImageFormat): String { + return imageUrl + } + } + companion object { private fun createMediaItem(urn: String): MediaItem { return MediaItem.Builder().setMediaId(urn).build()