Timeline for How to test if my application method handles HTTP status 404 of a REST API without actually calling that REST API
Current License: CC BY-SA 4.0
2 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 10, 2020 at 16:16 | comment | added | dzieciou | I like this alternative direction. It will get faster tests: no need to setup HTTP server instance, no need to send HTTP request and wait for HTTP response. It may make sense for large number of such mocked tests. Obviously, for the price of not testing the actual HTTP traffic and HTTP client integration (hence serialization reqeust DTO to HTTP request and deserialization of HTTP response to response DTO). | |
May 10, 2020 at 7:15 | history | answered | João Farias | CC BY-SA 4.0 |