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.
Watch the Lesson
P.S. You can get the example application from Github.