Created
February 21, 2022 12:33
-
-
Save Farhandroid/88e0327c6e6ae7d8426cb1fa8a3454cb to your computer and use it in GitHub Desktop.
FailTest
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
fun getSearchedResult_receivedResponse_wrongPageSize_shouldFail() { | |
runBlocking { | |
enqueueMockResponse("ImageResponse.json") | |
val responseBody = service.getSearchedImage("nature", 5).body() | |
val photoList = responseBody!!.photos | |
assertThat(photoList.size).isEqualTo(6) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment