Target type in jsonPath method of MockMvcResultMatchers #23121
Labels
in: test
Issues in the test module
status: superseded
An issue that has been superseded by another
type: enhancement
A general enhancement
Affects: 5.0.5
This in an enhancement
In #21129
MockMvcResultMatchers
adds the possibility to set thetargetType
when usingjsonPath
, but this can only be achieved as in the following code:It would be great to have the following method in the
MockMvcResultMatchers
class:See
spring-framework/spring-test/src/main/java/org/springframework/test/web/servlet/result/MockMvcResultMatchers.java
Line 203 in 0a77477
The new method can be something like this:
The text was updated successfully, but these errors were encountered: