Spring MVC Test

This blog post is the first part of my article series which investigates if we should use ObjectMapper for creating the request body when we are writing tests for Spring REST APIs. This blog post describes how we can generate the request body that's send to the system under test if we cannot use ObjectMapper, we must use the simplest possible solution, and we must use Java. Read More

Writing Unit Tests for a Spring MVC REST API: Writing Data

This blog post describes how we can send POST requests to the system under test, explains how we can configure the request body of the HTTP request, and describes how we can verify that our REST API is working as expected when validation fails and when validation is successful. Read More