Browse Source

Fix incorrect class reference syntax in Kotlin code sample

Closes gh-32733
pull/32864/head
Seungrae Kim 2 years ago committed by Sam Brannen
parent
commit
32c80d5ae6
  1. 6
      framework-docs/modules/ROOT/pages/testing/webtestclient.adoc

6
framework-docs/modules/ROOT/pages/testing/webtestclient.adoc

@ -672,13 +672,13 @@ Kotlin::
val result = client.get().uri("/persons/1") val result = client.get().uri("/persons/1")
.exchange() .exchange()
.expectStatus().isOk() .expectStatus().isOk()
.expectBody(Person.class) .expectBody(Person::class.java)
.returnResult(); .returnResult()
// For a response without a body // For a response without a body
val result = client.get().uri("/path") val result = client.get().uri("/path")
.exchange() .exchange()
.expectBody().isEmpty(); .expectBody().isEmpty()
---- ----
====== ======

Loading…
Cancel
Save