AnnotationProcessor { public static List<Field> getAllFields(Class clazz) { return getAllFieldsRecursively(clazz, new ArrayList<>()); } private  AnnotationProcessor(); static final Map<String, Map<String, com.yfiton.api.parameter.Parameter>> analyze(Collection<Notifier> notifiers); static List<Field> getAllFields(Class clazz);  }
@Test public void testGetAllFields() throws Exception { List<Field> fields = AnnotationProcessor.getAllFields(A.class); assertThat(fields).hasSize(4); }
@Test public void testGetAllFieldsNoField() throws Exception { List<Field> fields = AnnotationProcessor.getAllFields(D.class); assertThat(fields).hasSize(0); }