Enhance WebTestClient to support JSONPath decoding to higher level objects #31653
Labels
in: test
Issues in the test module
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
Uh oh!
There was an error while loading. Please reload this page.
WebTestClient
supports passing a targetClass
inJsonPathAssertions
. We should add an overloaded method that acceptsParameterizedTypeReference
. Also, even with the current method, it is only possible to decode to basic types without customizing the JSONPathConfiguration
.Once it is possible to customize the JSONPath
Configuration
inJsonPathExpectationsHelper
with #31651, we can updateWebTestClient
to prepare aConfiguration
with theJsonProvider
that aligns with that configured JSON encoding and decoding, and/or allow having theConfiguration
passed in somehow through theWebTestClient.Builder
(without bring in a hard dependency).The text was updated successfully, but these errors were encountered: