@Test void propertyDescriptorMethodWithDifferentIdTest() { PropertyDescriptor propertyDescriptor = this.beanDescriptor.getProperty("impossible.method.name"); assertNotNull(propertyDescriptor); assertEquals("impossible.method.name", propertyDescriptor.getId()); assertEquals("impossible.method.name", propertyDescriptor.getName()); assertEquals("propertyWithDifferentId", propertyDescriptor.getDescription()); assertSame(String.class, propertyDescriptor.getPropertyType()); assertFalse(propertyDescriptor.isMandatory()); assertNotNull(propertyDescriptor.getWriteMethod()); assertNotNull(propertyDescriptor.getReadMethod()); assertNull(propertyDescriptor.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);  }