From 617ba845771f8cf6d8f7e30ba8ff66214e97bc54 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Tue, 21 Nov 2023 10:23:10 +0100 Subject: [PATCH] Remove notes about WebTestClient type inference issue in Kotlin Since gh-28144 was resolved in Spring Framework 6.0, these notes are no longer relevant. --- .../pages/languages/kotlin/spring-projects-in.adoc | 12 ------------ .../modules/ROOT/pages/testing/webtestclient.adoc | 3 --- 2 files changed, 15 deletions(-) diff --git a/framework-docs/modules/ROOT/pages/languages/kotlin/spring-projects-in.adoc b/framework-docs/modules/ROOT/pages/languages/kotlin/spring-projects-in.adoc index 4118859a15..c8fc3c8459 100644 --- a/framework-docs/modules/ROOT/pages/languages/kotlin/spring-projects-in.adoc +++ b/framework-docs/modules/ROOT/pages/languages/kotlin/spring-projects-in.adoc @@ -383,15 +383,3 @@ class SpecificationLikeTests { ---- -[[kotlin-webtestclient-issue]] -=== `WebTestClient` Type Inference Issue in Kotlin - -Due to a https://youtrack.jetbrains.com/issue/KT-5464[type inference issue], you must -use the Kotlin `expectBody` extension (such as `.expectBody().isEqualTo("toys")`), -since it provides a workaround for the Kotlin issue with the Java API. - -See also the related https://jira.spring.io/browse/SPR-16057[SPR-16057] issue. - - - - diff --git a/framework-docs/modules/ROOT/pages/testing/webtestclient.adoc b/framework-docs/modules/ROOT/pages/testing/webtestclient.adoc index 16a4485693..7d6d1e4461 100644 --- a/framework-docs/modules/ROOT/pages/testing/webtestclient.adoc +++ b/framework-docs/modules/ROOT/pages/testing/webtestclient.adoc @@ -7,9 +7,6 @@ but exposes a testing facade for verifying responses. `WebTestClient` can be use perform end-to-end HTTP tests. It can also be used to test Spring MVC and Spring WebFlux applications without a running server via mock server request and response objects. -TIP: Kotlin users: See xref:languages/kotlin/spring-projects-in.adoc#kotlin-webtestclient-issue[this section] -related to use of the `WebTestClient`. -