From 32c80d5ae6629f86cd7c29cbb054e5175805f4cf Mon Sep 17 00:00:00 2001 From: Seungrae Kim Date: Tue, 30 Apr 2024 21:30:39 +0900 Subject: [PATCH] Fix incorrect class reference syntax in Kotlin code sample Closes gh-32733 --- .../modules/ROOT/pages/testing/webtestclient.adoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/framework-docs/modules/ROOT/pages/testing/webtestclient.adoc b/framework-docs/modules/ROOT/pages/testing/webtestclient.adoc index cd625209b35..3a4713b1332 100644 --- a/framework-docs/modules/ROOT/pages/testing/webtestclient.adoc +++ b/framework-docs/modules/ROOT/pages/testing/webtestclient.adoc @@ -672,13 +672,13 @@ Kotlin:: val result = client.get().uri("/persons/1") .exchange() .expectStatus().isOk() - .expectBody(Person.class) - .returnResult(); + .expectBody(Person::class.java) + .returnResult() // For a response without a body val result = client.get().uri("/path") .exchange() - .expectBody().isEmpty(); + .expectBody().isEmpty() ---- ======