Affects: 5.2.0.RELEASE
Currently the following returns an empty map:
new MockHttpServletRequest( "GET", "http://test.com?a=b" ).getParameterMap()
URI should be parsed and query parameters returned.
Comment From: rstoyanchev
This is equivalent to:
MockHttpServletRequest = new MockHttpServletRequest();
request.setMethod("GET");
request.setRequestURI("...")'
The argument maps to HttpServletRequest#getRequestURI which is defined as follows:
Returns the part of this request's URL from the protocol name up to the query string in the first line of the HTTP request.
Comment From: rstoyanchev
If you want a higher level builder, perhaps using MockMvcRequestBuilders could help.