Browse Source

Merge branch '2.7.x'

Closes gh-33869
pull/33886/head
Moritz Halbritter 3 years ago
parent
commit
4735a0fb7e
  1. 2
      spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/kotlin.adoc

2
spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/kotlin.adoc

@ -137,7 +137,7 @@ JUnit 5 enables a test class to be instantiated once and reused for all of the c @@ -137,7 +137,7 @@ JUnit 5 enables a test class to be instantiated once and reused for all of the c
This makes it possible to use `@BeforeAll` and `@AfterAll` annotations on non-static methods, which is a good fit for Kotlin.
To mock Kotlin classes, https://mockk.io/[MockK] is recommended.
If you need the `Mockk` equivalent of the Mockito specific <<features#features.testing.spring-boot-applications.mocking-beans,`@MockBean` and `@SpyBean` annotations>>, you can use https://github.com/Ninja-Squad/springmockk[SpringMockK] which provides similar `@MockkBean` and `@SpykBean` annotations.
If you need the `MockK` equivalent of the Mockito specific <<features#features.testing.spring-boot-applications.mocking-beans,`@MockBean` and `@SpyBean` annotations>>, you can use https://github.com/Ninja-Squad/springmockk[SpringMockK] which provides similar `@MockkBean` and `@SpykBean` annotations.

Loading…
Cancel
Save