How To Create a Stub in 5 Minutes

If you’re developing an application that sends REST requests to the API of another service, mocks and stubs will probably help with your testing. Mock objects are used in unit tests: a call to another service is simulated. A test stub is an HTTP server that completely mimics the behavior of the service with which we plan to interact during the production use of our application. But using this service is not suitable for testing purposes. The scope of stubs is wide: regression testing, load testing, debugging, and more. 

Today, I will be as brief and, to the best of my ability, clearly talk about how to create stubs in a matter of minutes using the WireMock tool.

CategoriesUncategorized