Use expectBody<Person>() in WebTestClient documentation

Closes gh-32733
This commit is contained in:
Sébastien Deleuze
2024-05-02 11:07:36 +02:00
parent 64b0283042
commit f17527a48b

View File

@@ -672,7 +672,7 @@ Kotlin::
val result = client.get().uri("/persons/1")
.exchange()
.expectStatus().isOk()
.expectBody(Person::class.java)
.expectBody<Person>()
.returnResult()
// For a response without a body