Closed
Description
Hiya,
Awesome library!
However.
We are in a situation where we want to test if a pull to refresh succeeds successfully.
See pseudo code
fun onPullToRefreshTheDataShouldBeDifferent() {
whenGET(pathEndsWith("/some/path")
.thenReturnFile("/file_with_json_1.json")
.thenReturnFile("/file_with_json_2.json"
launchActivity()
doAssertionViewHolder()
swipeToRefresh()
doAssertionDifferentViewHolderShouldNowBeVisible()
}
The RESTMockWebServer
seems to always return the first defined JSON
("/file_with_json_1.json").
Does this work like intended?
Because I don't see any samples like this on your repo
Thanks In advance.
Tim
Metadata
Metadata
Assignees
Labels
No labels