Browse Source

Add a link to SpringMockK in the Kotlin documentation

See gh-15943
pull/16343/head
Sebastien Deleuze 7 years ago committed by Stephane Nicoll
parent
commit
da6de215a6
  1. 6
      spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc

6
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 @@ -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
<<boot-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.
[[boot-features-kotlin-resources]]

Loading…
Cancel
Save