@Test void testUntypedListNotSupported() { UntypedListConfigClass instance = new UntypedListConfigClass(); Class<UntypedListConfigClass> clazz = UntypedListConfigClass.class; assertThrows( IllegalArgumentException.class, () -> { ObjectPropertyField field_list = new ObjectPropertyField(clazz.getDeclaredField("list"), propName); field_list.applyValueParser(instance, "1,2,3"); }, "ObjectPropertyField: unsupported type on field"); }
void applyValueParser(Object instance, String value) { try { field.set(instance, valueParser.apply(value)); } catch (IllegalAccessException e) { throw ThrowableUtil.propagate(e); } }
ObjectPropertyField { void applyValueParser(Object instance, String value) { try { field.set(instance, valueParser.apply(value)); } catch (IllegalAccessException e) { throw ThrowableUtil.propagate(e); } } }
ObjectPropertyField { void applyValueParser(Object instance, String value) { try { field.set(instance, valueParser.apply(value)); } catch (IllegalAccessException e) { throw ThrowableUtil.propagate(e); } } ObjectPropertyField(Field field, String propertyName); }
ObjectPropertyField { void applyValueParser(Object instance, String value) { try { field.set(instance, valueParser.apply(value)); } catch (IllegalAccessException e) { throw ThrowableUtil.propagate(e); } } ObjectPropertyField(Field field, String propertyName);  }
ObjectPropertyField { void applyValueParser(Object instance, String value) { try { field.set(instance, valueParser.apply(value)); } catch (IllegalAccessException e) { throw ThrowableUtil.propagate(e); } } ObjectPropertyField(Field field, String propertyName);   }