MockHttpServletRequestBuilder parses form data

Spring MVC Test now parses application/x-www-form-urlencoded request
content and populates request parameters from it.

This can be useful when running client-side tests against a MockMvc
via MockMvcClientHttpRequestFactory.

Issue: SPR-13733
This commit is contained in:
Rossen Stoyanchev
2016-01-21 17:20:34 -05:00
parent 6a9455b7d0
commit 415b2763ce
3 changed files with 69 additions and 18 deletions

View File

@@ -672,5 +672,6 @@ Spring 4.3 also improves the caching abstraction as follows:
=== Testing Improvements
* The JUnit support in the _Spring TestContext Framework_ now requires JUnit 4.12 or higher.
* Server-side Spring MVC Test supports expectations on response headers with multiple values.
* Server-side Spring MVC Test parses form data request content and populates request parameters.
* Client-side Spring MVC Test supports expectations for form data in the request body.
* Server-side Spring MVC Test supports expectations on response headers with multiple values.