From 137858a08368b2c9e266911964d972894eab0d76 Mon Sep 17 00:00:00 2001 From: Sebastien Deleuze Date: Wed, 13 Feb 2019 17:21:04 +0100 Subject: [PATCH] Add a link to SpringMockK in the Kotlin documentation --- .../src/main/asciidoc/spring-boot-features.adoc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc b/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc index 4d3abe591ce9..b70dc6aaa2b0 100644 --- a/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc +++ b/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc @@ -8610,6 +8610,12 @@ documentation] for more details. You also need to {junit5-documentation}/#writing-tests-test-instance-lifecycle-changing-default[switch test instance lifecycle to "per-class"]. +For mocking Kotlin classes, using https://mockk.io/[Mockk] is recommended. If you need the +Mockk equivalent of the Mockito specific +<>, +you can use https://github.com/Ninja-Squad/springmockk[SpringMockK] which provides similar `@MockkBean` +and `@SpykBean` annotations. + [[boot-features-kotlin-resources]]