Skip to content

Why is the default response of a Mock client an empty 200 response? #36

Closed as not planned
@ruudk

Description

@ruudk

I think this leads to very weird situations where you register a Mock client in your test environment. Then suddenly, pages are breaking because "null cannot be foreached". Looking at the code I see that the client responded with 200 OK but the response is null. Only then realising that the client is a Mock client.

Wouldn't it make more sense if the Client would always return an 501 Not Implemented or throws a NoMockSpecifiedException?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions