mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 12:53:55 +01:00
* logs * Issue resolved * Logs removed * Beta working * Production GET call only for fetch images from depicted item * Code convention maintained * Code convention maintained * Test resolved * Java Docs added * Quotes added
This commit is contained in:
parent
7bcaab2442
commit
0914eeea53
6 changed files with 162 additions and 5 deletions
|
|
@ -3,6 +3,7 @@ package fr.free.nrw.commons.explore.depictions.media
|
|||
import com.nhaarman.mockitokotlin2.mock
|
||||
import com.nhaarman.mockitokotlin2.whenever
|
||||
import fr.free.nrw.commons.media.MediaClient
|
||||
import fr.free.nrw.commons.media.WikidataMediaClient
|
||||
import io.reactivex.Single
|
||||
import org.junit.Assert
|
||||
import org.junit.Test
|
||||
|
|
@ -10,7 +11,7 @@ import org.junit.Test
|
|||
class PageableDepictedMediaDataSourceTest{
|
||||
@Test
|
||||
fun `loadFunction loads Media`() {
|
||||
val mediaClient = mock<MediaClient>()
|
||||
val mediaClient = mock<WikidataMediaClient>()
|
||||
whenever(mediaClient.fetchImagesForDepictedItem("test",0,1))
|
||||
.thenReturn(Single.just(emptyList()))
|
||||
val pageableDepictedMediaDataSource = PageableDepictedMediaDataSource(mock(), mediaClient)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue