Use expectBody<Person>() in WebTestClient documentation
Closes gh-32733
This commit is contained in:
parent
64b0283042
commit
f17527a48b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue