@Test public void testRetrievalOfAnnotations() { createMetadataForTestModelFieldWithName("referencedResource"); assertThat(this.testee.getAnnotations()).isNotEmpty(); Function<Annotation, Class<? extends Annotation>> getType = Annotation::annotationType; assertThat(this.testee.getAnnotations().stream().map(getType)) .contains(Reference.class); }
public Annotations getAnnotations() { return annotations; }
MappedFieldMetaData { public Annotations getAnnotations() { return annotations; } }
MappedFieldMetaData { public Annotations getAnnotations() { return annotations; } MappedFieldMetaData(Field field, Class<?> modelType); }
MappedFieldMetaData { public Annotations getAnnotations() { return annotations; } MappedFieldMetaData(Field field, Class<?> modelType); Object getLazyLoadingProxy(Callable<?> valueFactory); Field getField(); boolean isReference(); boolean isAppendPathPresentOnReference(); String getAppendPathOnReference(); boolean isThisReference(); ResourcePaths.ResourcePath getPath(); Class<?> getType(); boolean isPathAnnotationPresent(); boolean isPropertyType(); boolean isCollectionType(); boolean isInstantiableCollectionType(); boolean isChildrenAnnotationPresent(); boolean isResolveBelowEveryChildPathPresentOnChildren(); String getResolveBelowEveryChildPathOnChildren(); Class<?> getTypeParameter(); Class<?> getArrayTypeOfTypeParameter(); Annotations getAnnotations(); boolean isLazy(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
MappedFieldMetaData { public Annotations getAnnotations() { return annotations; } MappedFieldMetaData(Field field, Class<?> modelType); Object getLazyLoadingProxy(Callable<?> valueFactory); Field getField(); boolean isReference(); boolean isAppendPathPresentOnReference(); String getAppendPathOnReference(); boolean isThisReference(); ResourcePaths.ResourcePath getPath(); Class<?> getType(); boolean isPathAnnotationPresent(); boolean isPropertyType(); boolean isCollectionType(); boolean isInstantiableCollectionType(); boolean isChildrenAnnotationPresent(); boolean isResolveBelowEveryChildPathPresentOnChildren(); String getResolveBelowEveryChildPathOnChildren(); Class<?> getTypeParameter(); Class<?> getArrayTypeOfTypeParameter(); Annotations getAnnotations(); boolean isLazy(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }