This blog post is the second 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 replace ObjectMapper with Thymeleaf template engine. Read More
Spring MVC Test
Clean Test Automation Monthly 6 / 2023
The Clean Test Automation Monthly is a monthly blog post that highlights the best test automation content which I read during the current month. This blog post highlights the best test automation content of June 2023. Read More
How to Write MockMvc Tests Without ObjectMapper, Part One - The Simplest Possible Solution
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
The Best Way to Configure the Spring MVC Test Framework, Part Two
This blog post identifies the characteristics of good integration tests and describes what's the best way to configure the Spring MVC Test framework (aka MockMvc) when we are writing integration tests for Spring web applications or REST APIs. 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
Writing Unit Tests for a Spring MVC REST API: Returning a List
This blog post describes how we can ensure that the system under test returns the correct HTTP status code and verify that the system under test returns the correct information when we are writing unit tests for a Spring MVC REST API endpoint that returns a list. Read More