MockRestRequestMatchers should have matchers for form data [SPR-13044] #17636
Labels
in: test
Issues in the test module
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
John Mark opened SPR-13044 and commented
RestTemplate makes it easy to POST
application/x-www-form-urlencoded
data using a MultiValueMap. The problem I am having is that there is no easy way to test this.MockRestRequestMatchers has jsonPath and xpath matchers, but nothing to match form data. Currently, the only way to verify the form data would be to manually assemble the expected string, but that is clumsy and can be error prone, and can break if the order of parameters changes.
Affects: 4.2.4
Issue Links:
Referenced from: commits 1416c2a
2 votes, 5 watchers
The text was updated successfully, but these errors were encountered: