Testing applications with HTTP dependencies

September 25th 2024 NT konferenca 2024 Portorož, Slovenia

It's pretty common nowadays for applications to call one or more HTTP service as part of their functionality. In automated tests we want to mock those, so that the we can test the application in isolation. We will explore how to do that at 3 different levels: by mocking the HttpClient, by mocking the service class, and by mocking the HTTP service. By the end of the talk, you will learn when to choose each option and which tools you can use to do it.

Copyright
Creative Commons License