Skip to content

Commit

Permalink
Fix incorrect class reference syntax in Kotlin code sample
Browse files Browse the repository at this point in the history
  • Loading branch information
Seungpang authored and sbrannen committed Apr 30, 2024
1 parent 0241a02 commit 32c80d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions framework-docs/modules/ROOT/pages/testing/webtestclient.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -672,13 +672,13 @@ Kotlin::
val result = client.get().uri("/persons/1")
.exchange()
.expectStatus().isOk()
.expectBody(Person.class)
.returnResult();
.expectBody(Person::class.java)
.returnResult()
// For a response without a body
val result = client.get().uri("/path")
.exchange()
.expectBody().isEmpty();
.expectBody().isEmpty()
----
======

Expand Down

0 comments on commit 32c80d5

Please sign in to comment.