Skip to content

Instantly share code, notes, and snippets.

@vincent-paing
Created August 21, 2019 09:25
Show Gist options
  • Save vincent-paing/4226f42f34e09721c8f3b3050e7e9953 to your computer and use it in GitHub Desktop.
Save vincent-paing/4226f42f34e09721c8f3b3050e7e9953 to your computer and use it in GitHub Desktop.
if (imageLoader is FakeImageLoader) {
val fakeImageLoader = imageLoader as FakeImageLoader
val requestSet = fakeImageLoader.requestSet
val request = requestSet.elementAt(index)
val url = request.data as String
Assert.assertEquals(movie.posterPath, url)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment