Skip to content

Commit 51d0f95

Browse files
committed
DATAES-410 - Adapt API changes in Property in test cases.
1 parent 75f34e4 commit 51d0f95

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentEntityTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ public void shouldThrowExceptionGivenMultipleVersionPropertiesArePresent()
6666
private static SimpleElasticsearchPersistentProperty createProperty(SimpleElasticsearchPersistentEntity<?> entity,
6767
String field) {
6868

69-
Property property = Property.of(ReflectionUtils.findField(entity.getTypeInformation().getType(), field));
69+
TypeInformation<?> type = entity.getTypeInformation();
70+
Property property = Property.of(type, ReflectionUtils.findField(entity.getType(), field));
7071
return new SimpleElasticsearchPersistentProperty(property, entity, SimpleTypeHolder.DEFAULT);
7172

7273
}

0 commit comments

Comments
 (0)