Writing Unit Tests for a Spring REST API With Kotlin and JUnit 5: Configuration

Writing Unit Tests for a Spring REST API With Kotlin and JUnit 5: Configuration

adminMarch 31, 20202min40
adminMarch 31, 20202min40
petrikainulainen
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, […]


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

 



Source link

Share it

Leave a Reply

Your email address will not be published. Required fields are marked *