Skip to content

Commit

Permalink
Use expectBody<Person>() in WebTestClient documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
sdeleuze committed May 2, 2024
1 parent 64b0283 commit f17527a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f17527a

Please sign in to comment.