Code example for ServletWebRequest

0
		paramMultiValueMap = new MethodParameter(method, 1); 
		paramNamedMap = new MethodParameter(method, 2); 
		paramMapWithoutAnnot = new MethodParameter(method, 3); 
 
		request = new MockHttpServletRequest(); 
		webRequest = new ServletWebRequest(request, new MockHttpServletResponse()); 
	} 
 
	@Test 
	public void supportsParameter() { 
		assertTrue("Map parameter not supported", resolver.supportsParameter(paramMap)); 
		assertTrue("MultiValueMap parameter not supported", resolver.supportsParameter(paramMultiValueMap)); 
		assertFalse("Map with name supported", resolver.supportsParameter(paramNamedMap)); 
		assertFalse("non-@RequestParam map supported", resolver.supportsParameter(paramMapWithoutAnnot)); 
	} 
 
	@Test 
	public void resolveMapArgument() throws Exception { 
		String name = "foo"; 
		String value = "bar";