@Test public void testMetadataMakesFieldAccessible() throws Exception { TestResourceModel testResourceModel = new TestResourceModel(); createMetadataForTestModelFieldWithName("stringField"); this.testee.getField().set(testResourceModel, "JunitTest"); assertThat(testResourceModel.getStringField()).isEqualTo("JunitTest"); }
public Field getField() { return this.field; }
MappedFieldMetaData { public Field getField() { return this.field; } }
MappedFieldMetaData { public Field getField() { return this.field; } MappedFieldMetaData(Field field, Class<?> modelType); }
MappedFieldMetaData { public Field getField() { return this.field; } 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 Field getField() { return this.field; } 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();  }