DATAES-410 - Adapt API changes in Property in test cases.

This commit is contained in:
Oliver Gierke 2017-10-27 11:24:34 +02:00
parent 75f34e4d02
commit 51d0f95f65

View File

@ -66,7 +66,8 @@ public class SimpleElasticsearchPersistentEntityTests {
private static SimpleElasticsearchPersistentProperty createProperty(SimpleElasticsearchPersistentEntity<?> entity,
String field) {
Property property = Property.of(ReflectionUtils.findField(entity.getTypeInformation().getType(), field));
TypeInformation<?> type = entity.getTypeInformation();
Property property = Property.of(type, ReflectionUtils.findField(entity.getType(), field));
return new SimpleElasticsearchPersistentProperty(property, entity, SimpleTypeHolder.DEFAULT);
}