use of org.neo4j.ogm.domain.gh552.Thing in project neo4j-ogm by neo4j.
the class SingleUseEntityMapperTest method shouldLookupCorrectRootClass.
// GH-552
@Test
public void shouldLookupCorrectRootClass() {
MetaData metaData = new MetaData("org.neo4j.ogm.domain.gh552");
String propertyKey = "notAName";
Map<String, Object> properties = Collections.singletonMap(propertyKey, "NOT A NAME!!!");
SingleUseEntityMapper entityMapper = new SingleUseEntityMapper(metaData, new ReflectionEntityInstantiator(metaData));
Thing thing = entityMapper.map(Thing.class, properties);
assertThat(thing.getNotAName()).isEqualTo(properties.get(propertyKey));
}
Aggregations