Package org.springframework.tests.sample.beans

Examples of org.springframework.tests.sample.beans.BeanWithObjectProperty


      assertNotNull(tb.getSpouse());
    }
  }

  public void testBindingWithCustomEditorOnObjectField() {
    BeanWithObjectProperty tb = new BeanWithObjectProperty();
    DataBinder binder = new DataBinder(tb);
    binder.registerCustomEditor(Integer.class, "object", new CustomNumberEditor(Integer.class, true));
    MutablePropertyValues pvs = new MutablePropertyValues();
    pvs.add("object", "1");
    binder.bind(pvs);
    assertEquals(new Integer(1), tb.getObject());
  }
View Full Code Here

TOP

Related Classes of org.springframework.tests.sample.beans.BeanWithObjectProperty

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.