Code example for MutablePropertyValues

Methods: add

0
		assertEquals("2009-10-31", binder.getBindingResult().getFieldValue("isoDate"));
	} 
 
	@Test
	public void testBindISOTime() { 
		MutablePropertyValues propertyValues = new MutablePropertyValues();
		propertyValues.add("isoTime", "12:00:00.000-05:00");
		binder.bind(propertyValues);
		assertEquals(0, binder.getBindingResult().getErrorCount());
		assertEquals("12:00:00", binder.getBindingResult().getFieldValue("isoTime"));
	} 
 
	@Test
	public void testBindISODateTime() { 
		MutablePropertyValues propertyValues = new MutablePropertyValues();
		propertyValues.add("isoDateTime", "2009-10-31T12:00:00.000Z");
		binder.bind(propertyValues);
		assertEquals(0, binder.getBindingResult().getErrorCount());
		assertEquals("2009-10-31T12:00:00", binder.getBindingResult().getFieldValue("isoDateTime"));
	} 
Connect your IDE to all the code out there  Get Codota for Java