File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
spring-boot-project/spring-boot-docs/src/main/asciidoc Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -8610,6 +8610,12 @@ documentation] for more details. You also need to
8610
8610
{junit5-documentation}/#writing-tests-test-instance-lifecycle-changing-default[switch test
8611
8611
instance lifecycle to "per-class"].
8612
8612
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
+
8613
8619
8614
8620
8615
8621
[[boot-features-kotlin-resources]]
You can’t perform that action at this time.
0 commit comments