This blog post describes how we can configure the system under test by using the standalone configuration of Spring MockMvc when we are writing unit tests for view-rendering Spring MVC controllers. We will learn how we can get the required dependencies and remove duplicate configuration code from our test classes by using both object mother and HTTP request builder classes. Read More
Spring MVC Test
The Clean Test Automation Monthly is a monthly blog post that highlights interesting or useful test automation content which I read during the current month. This blog post shares 14 interesting or useful blog posts which I read during July 2026. Read More
This blog post is a complete introduction to Spring MockMvc. It highlights the benefits of Spring MockMvc, identifies its key components, and describes how we can get the required dependencies with Maven and Gradle. Read More
This blog post describes how we can write unit tests for a Spring MVC REST API endpoint that returns an object as JSON. We will identify the tests we must write, learn to eliminate duplicate request building code from our test class, and write assertions for the HTTP response with MockMvcTester and AssertJ. Read More
The Clean Test Automation Monthly is a monthly blog post that highlights interesting or useful test automation content which I read during the current month. This blog post shares 20 interesting or useful blog posts which I read during April 2025. Read More
This blog post describes how we can write unit tests for a Spring MVC REST API endpoint that returns a list as JSON. We will identify the tests we must write, learn to eliminate duplicate request building code from our test class, and write assertions for the HTTP response with MockMvcTester and AssertJ. Read More