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, JUnit 5, Spring MVC Test framework, and MockK.
This lesson assumes that:
- You are familiar with Kotlin
- You can write unit tests with JUnit 5
- You are familiar with the Spring MVC Test framework
- You can create test doubles with MockK
Watch the Lesson
P.S. You can get the example application from Github.





Related Stories
- Writing Unit Tests for “Normal” Spring MVC Controllers: Configuration
- Running Kotlin Tests With Gradle
- The Best Way to Configure the Spring MVC Test Framework, Part One