From f17527a48bfb20b98edf225b60a7576e6536a940 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Deleuze?= Date: Thu, 2 May 2024 11:07:36 +0200 Subject: [PATCH] Use expectBody() in WebTestClient documentation Closes gh-32733 --- framework-docs/modules/ROOT/pages/testing/webtestclient.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework-docs/modules/ROOT/pages/testing/webtestclient.adoc b/framework-docs/modules/ROOT/pages/testing/webtestclient.adoc index 3a4713b133..f840531788 100644 --- a/framework-docs/modules/ROOT/pages/testing/webtestclient.adoc +++ b/framework-docs/modules/ROOT/pages/testing/webtestclient.adoc @@ -672,7 +672,7 @@ Kotlin:: val result = client.get().uri("/persons/1") .exchange() .expectStatus().isOk() - .expectBody(Person::class.java) + .expectBody() .returnResult() // For a response without a body