@Test public void testGetFields() throws Exception { JavaBeanReflection jbr = JavaBeanReflection.forType(Root.class); Set<String> fieldNames = jbr.getFields().stream().map(Field::getName).collect(Collectors.toSet()); assertThat(fieldNames).contains("name", "child"); }
List<Field> getFields() { return fields; }
JavaBeanReflection { List<Field> getFields() { return fields; } }
JavaBeanReflection { List<Field> getFields() { return fields; } JavaBeanReflection(Class<?> entityType); }
JavaBeanReflection { List<Field> getFields() { return fields; } JavaBeanReflection(Class<?> entityType);  }
JavaBeanReflection { List<Field> getFields() { return fields; } JavaBeanReflection(Class<?> entityType);   }