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
Testing
I just published a free sample lesson of my Test With Spring course. After we have finished this lesson, we understand how we can write unit tests for a REST API which returns data as Json by using Kotlin and JUnit 5. This lesson assumes that: You can configure the system under test when you […] Read more
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
I just published a free sample lesson of my Test With Spring course. After we have finished this lesson, we: Understand how we can remove duplicate code from our test suite. Can configure the system under test by using the standalone configuration when we are writing unit tests for a Spring REST API with Kotlin, […] Read more
Before we can write unit tests for Spring MVC controllers, we have to configure the system under test (aka the Spring MVC Test framework), and that's why we must understand what's the best way to configure our unit tests. After we have finished this blog post, we: Can identify the techniques we can use when […] Read more
I have written quite a bit about the TestProject framework, and my TestProject tutorial provides us the technical skills which we need when we write tests for our web applications. This is a good start, but it's not enough. Before we can truly master a tool, we have to learn to use it in the […] Read more