We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a3afe51 + 32c80d5 commit 512ff7cCopy full SHA for 512ff7c
framework-docs/modules/ROOT/pages/testing/webtestclient.adoc
@@ -672,13 +672,13 @@ Kotlin::
672
val result = client.get().uri("/persons/1")
673
.exchange()
674
.expectStatus().isOk()
675
- .expectBody(Person.class)
676
- .returnResult();
+ .expectBody(Person::class.java)
+ .returnResult()
677
678
// For a response without a body
679
val result = client.get().uri("/path")
680
681
- .expectBody().isEmpty();
+ .expectBody().isEmpty()
682
----
683
======
684
0 commit comments