Package jodd.introspector.tst

Examples of jodd.introspector.tst.TwoSub


      assertNotNull(propertyDescriptors[i].getFieldDescriptor());
    }

    // change value

    TwoSub one = new TwoSub();

    Setter setter = propertyDescriptors[0].getSetter(true);

    setter.invokeSetter(one, "one!");

    assertEquals("one!", one.getFone());

    // fields

    FieldDescriptor[] fieldDescriptors = cd.getAllFieldDescriptors();
    assertEquals(1, fieldDescriptors.length);

    assertEquals("ftwo", fieldDescriptors[0].getName());

    // beanutil

    BeanUtil.setDeclaredProperty(one, "fone", "!!!");
    assertEquals("!!!", one.getFone());
  }
View Full Code Here

TOP

Related Classes of jodd.introspector.tst.TwoSub

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.