@Test public void testWrite() { final String value = "value"; accessor.write(testBean, TestBean.PROP_NAME, value); Assert.assertEquals(value, testBean.getName()); }
public void write(final Object bean, final String fieldName, final Object param) { getAccessor(bean.getClass()).write(bean, fieldName, param); }
FieldAccessor { public void write(final Object bean, final String fieldName, final Object param) { getAccessor(bean.getClass()).write(bean, fieldName, param); } }
FieldAccessor { public void write(final Object bean, final String fieldName, final Object param) { getAccessor(bean.getClass()).write(bean, fieldName, param); } FieldAccessor(); }
FieldAccessor { public void write(final Object bean, final String fieldName, final Object param) { getAccessor(bean.getClass()).write(bean, fieldName, param); } 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 void write(final Object bean, final String fieldName, final Object param) { getAccessor(bean.getClass()).write(bean, fieldName, param); } 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);  }