use of org.powermock.PowerMockInternalException in project powermock by powermock.
the class ConfigurationMapper method map.
public void map(final Properties properties) {
try {
BeanInfo info = Introspector.getBeanInfo(configurationClass, Object.class);
PropertyDescriptor[] propertyDescriptors = info.getPropertyDescriptors();
for (PropertyDescriptor propertyDescriptor : propertyDescriptors) {
if (propertyDescriptor.getWriteMethod() != null) {
mapProperty(propertyDescriptor, properties);
}
}
} catch (Exception e) {
throw new PowerMockInternalException(e);
}
}
Aggregations