8000 Multiple Responses Same Path · Issue #46 · andrzejchm/RESTMock · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Multiple Responses Same Path #46
Closed
@timrijckaert

Description

@timrijckaert

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0