With the current nullness information, Kotlin developers cannot test valid JSON responses like:
The following code snippet does not compile because expectBodyList expects a non nullable type.
webTestClient
.get().uri("/")
.exchange()
.expectBodyList<String?>().contains(null)
This needs changes in the Kotlin extension function itself, but also will also require additional changes in Framework. This is similar to spring-projects/spring-graphql#1424
With the current nullness information, Kotlin developers cannot test valid JSON responses like:
[null]The following code snippet does not compile because
expectBodyListexpects a non nullable type.This needs changes in the Kotlin extension function itself, but also will also require additional changes in Framework. This is similar to spring-projects/spring-graphql#1424