Tag: kotlin

Using WireMock in your unit tests

Most non-trivial applications, especially in today’s microservices world, will call other services using a REST API to perform a task. Unit testing parts of your application that call REST APIs can be difficult and error prone when just using JUnit and Mockito.
This post shows how to use WireMock to mock a REST service with both GET and POST methods in a unit test.