From 5c2d65b8efcd5c55be59481df97d6cc4a63a14a6 Mon Sep 17 00:00:00 2001 From: wonwoo Date: Wed, 26 Feb 2020 22:34:25 +0900 Subject: [PATCH] Fix typo in reference manual Closes gh-24597 --- src/docs/asciidoc/languages/kotlin.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/docs/asciidoc/languages/kotlin.adoc b/src/docs/asciidoc/languages/kotlin.adoc index d9702e8a1f..ad18b3c28b 100644 --- a/src/docs/asciidoc/languages/kotlin.adoc +++ b/src/docs/asciidoc/languages/kotlin.adoc @@ -856,14 +856,14 @@ https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#boot-featu As described in the <>, JUnit 5 allows constructor injection of beans which is pretty useful with Kotlin in order to use `val` instead of `lateinit var`. You can use -{api-spring-framework}/test/context/TestConstructor.html[`@TestConstructor(autowire = true)`] +{api-spring-framework}/test/context/TestConstructor.html[`@TestConstructor(autowireMode = AutowireMode.ALL)`] to enable autowiring for all parameters. ==== [source,kotlin,indent=0] ---- @SpringJUnitConfig(TestConfig::class) -@TestConstructor(autowire = true) +@TestConstructor(autowireMode = AutowireMode.ALL) class OrderServiceIntegrationTests(val orderService: OrderService, val customerService: CustomerService) {