Package jodd.introspector.tst

Examples of jodd.introspector.tst.One


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

    // change value

    One one = new One();

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

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

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

    // fields

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

    // beanutil

    BeanUtil.setDeclaredProperty(one, "fone", "!!!");
    assertEquals("!!!", one.getFone());

    // change value 2

    setter = propertyDescriptors[2].getSetter(true);
    setter.invokeSetter(one, Long.valueOf("99"));
    assertEquals(99, one.whynot());
  }
View Full Code Here

TOP

Related Classes of jodd.introspector.tst.One

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.