Added FormDataRequestMatchers to be able to verify expected form parameters when using MockRestServiceServer
E.g.
MockRestServiceServer mockServiceServer = MockRestServiceServer.createServer(restTemplate);
mockServiceServer.expect(ExpectedCount.once(), requestTo("/foobar"))
.andExpect(method(POST))
.andExpect(formData().value("foo", "bar"))
.andExpect(formData().value("baz", Matchers.containsInAnyOrder("fizz", "buzz")))
.andRespond(withSuccess().location(URI.create("/foobar/123")));
Comment From: sbrannen
This is related to gh-20653 and should be assessed in conjunction with that.
Comment From: spac-valentin
Opened PR for gh-20653 (https://github.com/spring-projects/spring-framework/pull/23772) which should address this too
Comment From: rstoyanchev
Closing, see https://github.com/spring-projects/spring-framework/pull/23772#issuecomment-645825832.