Skip to content

Commit f17527a

Browse files
committed
Use expectBody<Person>() in WebTestClient documentation
Closes gh-32733
1 parent 64b0283 commit f17527a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: framework-docs/modules/ROOT/pages/testing/webtestclient.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ Kotlin::
672672
val result = client.get().uri("/persons/1")
673673
.exchange()
674674
.expectStatus().isOk()
675-
.expectBody(Person::class.java)
675+
.expectBody<Person>()
676676
.returnResult()
677677
678678
// For a response without a body

0 commit comments

Comments
 (0)