WireMock is a simulator for HTTP–based APIs or MockServer.
REST APIs are everywhere today as it’s the modern and easiest way to build a functionality and expose it to the real world.
When it comes to writing Unit Test Cases that involve REST–based interactions there is always a challenge in testing error responses , network faults, latency and timeouts. WireMock is going to solve this problem of the application code that depends on the external service by mocking the actual service.
In MicroServices Architecture, It is pretty common for services to depend on one other and it’s always a challenge to write test cases for the code that depends on other external services. WireMock provides the necessary tools to simulate an external service so the code that depends on the external service can be tested which helps to build the robust REST Client.
This course is going to cover the techniques that are listed below using WireMock:
Simulating the External Service
Simulating Error response
Simulating Network errors
Learn to integrate the most powerful HTTP Mock library – WireMock into your application to build a Resilient and Robust REST API clients.
Why you should use WireMock ?
If your application depends on an API that does not exist but still you would like to build the REST Client then WireMock can help support that kind of development.
Courses : 6
Specification: WireMock for Java Developers