We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0241a02 commit 32c80d5Copy full SHA for 32c80d5
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