Daniele Andreoli
03/09/2021, 9:42 PMResponse.success(mockedResponseList)
Here's the code complete:
coEvery { restApi.getAllBeersWithPagination(1, null).hint(Response::class) } coAnswers { Response.success(mockedResponseList)}
But it always returns:
java.lang.ClassCastException: java.lang.Object cannot be cast to retrofit2.Response
Someone can help me, please? ThanksMattia Tommasone
03/09/2021, 10:11 PMgetAllBeersWithPagination
return?coEvery {
restApi.getAllBeersWithPagination(1, null)
} returns Response.success(mockedResponseList)
btwDaniele Andreoli
03/10/2021, 6:31 AMResponse<List<BeersListDTOItem>>