Code example for ConfigurableWebBindingInitializer

Methods: setConversionService

0
 
		this.testBeanModelAttr = new MethodParameter(method, 0); 
		this.testBeanWithoutStringConstructorModelAttr = new MethodParameter(method, 1); 
		this.testBeanWithOptionalModelAttr = new MethodParameter(method, 2); 
 
		ConfigurableWebBindingInitializer initializer = new ConfigurableWebBindingInitializer(); 
		initializer.setConversionService(new DefaultConversionService()); 
 
		this.binderFactory = new ServletRequestDataBinderFactory(null, initializer); 
		this.mavContainer = new ModelAndViewContainer(); 
 
		this.request = new MockHttpServletRequest(); 
		this.webRequest = new ServletWebRequest(request); 
	} 
 
 
	@Test 
	public void createAttributeUriTemplateVar() throws Exception { 
		Map<String, String> uriTemplateVars = new HashMap<String, String>(); 
		uriTemplateVars.put("testBean1", "Patty"); 
Experience pair programming with AI  Get Codota for Java