Code example for MutablePropertyValues

Methods: add

0
		assertEquals("20091031", binder.getBindingResult().getFieldValue("localDate"));
	} 
 
	@Test
	public void testBindLocalDateArray() { 
		MutablePropertyValues propertyValues = new MutablePropertyValues();
		propertyValues.add("localDate", new String[]{"10/31/09"});
		binder.bind(propertyValues);
		assertEquals(0, binder.getBindingResult().getErrorCount());
	} 
 
	@Test
	public void testBindLocalDateAnnotated() { 
		MutablePropertyValues propertyValues = new MutablePropertyValues();
		propertyValues.add("localDateAnnotated", "Oct 31, 2009");
		binder.bind(propertyValues);
		assertEquals(0, binder.getBindingResult().getErrorCount());
		assertEquals("Oct 31, 2009", binder.getBindingResult().getFieldValue("localDateAnnotated"));
	}