use of org.simpleflatmapper.reflect.getter.IdentityGetter in project SimpleFlatMapper by arnaudroger.
the class SelfPropertyMetaTest method testDirect.
@Test
public void testDirect() {
ClassMeta<String> direct = ReflectionService.newInstance().getClassMeta(String.class);
PropertyMeta<String, Object> property = direct.newPropertyFinder(isValidPropertyMeta).findProperty(new DefaultPropertyNameMatcher("bbb", 0, true, true), new Object[0]);
assertTrue("Expect SelfPropertyMeta " + property, property instanceof SelfPropertyMeta);
assertEquals("SelfPropertyMeta{type=class java.lang.String,name=self}", property.toString());
assertTrue(property.getGetter() instanceof IdentityGetter);
assertTrue(NullSetter.isNull(property.getSetter()));
assertEquals("{this}", property.getPath());
assertEquals(String.class, direct.getType());
}
Aggregations