@Test void propertyDescriptorWithDescriptionTest() { PropertyDescriptor prop1Descriptor = this.beanDescriptor.getProperty("prop1"); assertNotNull(prop1Descriptor); assertEquals("prop1", prop1Descriptor.getId()); assertEquals("prop1 description", prop1Descriptor.getDescription()); assertSame(String.class, prop1Descriptor.getPropertyClass()); assertFalse(prop1Descriptor.isMandatory()); assertNotNull(prop1Descriptor.getWriteMethod()); assertNotNull(prop1Descriptor.getReadMethod()); assertNull(prop1Descriptor.getField()); }
@Override public PropertyDescriptor getProperty(String propertyName) { return this.parameterDescriptorMap.get(propertyName); }
DefaultBeanDescriptor implements BeanDescriptor { @Override public PropertyDescriptor getProperty(String propertyName) { return this.parameterDescriptorMap.get(propertyName); } }
DefaultBeanDescriptor implements BeanDescriptor { @Override public PropertyDescriptor getProperty(String propertyName) { return this.parameterDescriptorMap.get(propertyName); } DefaultBeanDescriptor(Class<?> beanClass); }
DefaultBeanDescriptor implements BeanDescriptor { @Override public PropertyDescriptor getProperty(String propertyName) { return this.parameterDescriptorMap.get(propertyName); } DefaultBeanDescriptor(Class<?> beanClass); @Override Class<?> getBeanClass(); @Override Collection<PropertyDescriptor> getProperties(); @Override PropertyDescriptor getProperty(String propertyName); }
DefaultBeanDescriptor implements BeanDescriptor { @Override public PropertyDescriptor getProperty(String propertyName) { return this.parameterDescriptorMap.get(propertyName); } DefaultBeanDescriptor(Class<?> beanClass); @Override Class<?> getBeanClass(); @Override Collection<PropertyDescriptor> getProperties(); @Override PropertyDescriptor getProperty(String propertyName);  }