Examples of TargetWithNestedObject


Examples of org.springframework.boot.bind.RelaxedDataBinderTests.TargetWithNestedObject

    assertNotNull(wrapper.getPropertyValue("nested[foo][0]"));
  }

  @Test
  public void testBeanWrapperCreatesNewObjects() throws Exception {
    TargetWithNestedObject target = new TargetWithNestedObject();
    BeanWrapperImpl wrapper = new BeanWrapperImpl(target);
    wrapper.setAutoGrowNestedPaths(true);
    // For a nested object, you have to set a property for it to be created
    wrapper.setPropertyValue("nested.foo", "bar");
    wrapper.getPropertyValue("nested");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.