Spring MVC Test

Writing Tests for Spring MVC Controllers: Test Case 101

The previous part of my new Spring MVC Test tutorial taught us how we can configure the system under test when we are writing unit tests for "normal" Spring MVC controllers. We also learned that if we don't want to add duplicate code to our test classes, we should send HTTP requests to the system […] Read more

Writing Unit Tests for "Normal" Spring MVC Controllers: Configuration

The previous part of my new Spring MVC Test tutorial taught us that we should configure the system under test by using the standalone configuration when we are writing unit tests for Spring MVC controllers. In this blog post, we will put theory into practice. This blog post describes how we can use the standalone […] Read more

The Best Way to Configure the Spring MVC Test Framework, Part One

Before we can write unit tests for Spring MVC controllers, we have to configure the system under test (aka the Spring MVC Test framework). Unfortunately, before we can write the code that configures the Spring MVC Test framework, we have to be able to select the best way to configure our unit tests. After we […] Read more

Introduction to Spring MVC Test Framework

This blog post is the first part of my new Spring MVC Test tutorial. This tutorial helps you to write unit and integration tests for Spring MVC controllers with JUnit 5. However, before we can get to the good stuff, we have to understand the basics. After we have finished this blog post, we: Know […] Read more