Lucas
WebTestClient
client.get() .uri { it.path("/get") .queryParam("name", "John Smith") .queryParam("age", 45) .queryParam("isCanadian", true) .build() } .exchange() .expectStatus().isOk .expectBody() .jsonPath("$.person").exists()
client.get() .uri("/get") { +queryParam("name" to "John Smith") +queryParam("age" to 45) +queryParam("isCanadian" to true) } .exchange() .expectStatus().isOk .expectBody() .jsonPath("$.person").exists()
tmg
A modern programming language that makes developers happier.