Skip to content

Commit f87b58f

Browse files
committed
Merge pull request #15943 from sdeleuze
* pr/15943: Polish "Add a link to SpringMockK in the Kotlin documentation" Add a link to SpringMockK in the Kotlin documentation
2 parents 027f918 + cd322d7 commit f87b58f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8610,6 +8610,12 @@ documentation] for more details. You also need to
86108610
{junit5-documentation}/#writing-tests-test-instance-lifecycle-changing-default[switch test
86118611
instance lifecycle to "per-class"].
86128612

8613+
To mock Kotlin classes, https://mockk.io/[Mockk] is recommended. If you need the `Mockk`
8614+
equivalent of the Mockito specific
8615+
<<boot-features-testing-spring-boot-applications-mocking-beans,`@MockBean` and `@SpyBean`
8616+
annotations>>, you can use https://github.com/Ninja-Squad/springmockk[SpringMockK] which
8617+
provides similar `@MockkBean` and `@SpykBean` annotations.
8618+
86138619

86148620

86158621
[[boot-features-kotlin-resources]]

0 commit comments

Comments
 (0)