@Test public void testRead() { final String value = "value"; testBean.setName(value); String actual = (String) accessor.read(testBean, TestBean.PROP_NAME); Assert.assertEquals(value, actual); actual = (String) accessor.read(testBean, TestBean.PROP_NAME); Assert.assertEquals(value, actual); }
public Object read(final Object bean, final String fieldName) { return getAccessor(bean.getClass()).read(bean, fieldName); }
FieldAccessor { public Object read(final Object bean, final String fieldName) { return getAccessor(bean.getClass()).read(bean, fieldName); } }
FieldAccessor { public Object read(final Object bean, final String fieldName) { return getAccessor(bean.getClass()).read(bean, fieldName); } FieldAccessor(); }
FieldAccessor { public Object read(final Object bean, final String fieldName) { return getAccessor(bean.getClass()).read(bean, fieldName); } FieldAccessor(); Object read(final Object bean, final String fieldName); void write(final Object bean, final String fieldName, final Object param); Class<?> getFieldType(final Class<?> beanClass, final String fieldName); Field getField(final Class<?> beanClass, final String fieldName); }
FieldAccessor { public Object read(final Object bean, final String fieldName) { return getAccessor(bean.getClass()).read(bean, fieldName); } FieldAccessor(); Object read(final Object bean, final String fieldName); void write(final Object bean, final String fieldName, final Object param); Class<?> getFieldType(final Class<?> beanClass, final String fieldName); Field getField(final Class<?> beanClass, final String fieldName);  }