From 49c0b6def97fa8cb111c3f317bc9856c4c72041f Mon Sep 17 00:00:00 2001 From: Oliver Gierke Date: Fri, 27 Oct 2017 11:30:35 +0200 Subject: [PATCH] DATACOUCH-346 - Adapt API changes in Property in test cases. --- .../mapping/BasicCouchbasePersistentPropertyTests.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/springframework/data/couchbase/core/mapping/BasicCouchbasePersistentPropertyTests.java b/src/test/java/org/springframework/data/couchbase/core/mapping/BasicCouchbasePersistentPropertyTests.java index 83dec723..f2434250 100644 --- a/src/test/java/org/springframework/data/couchbase/core/mapping/BasicCouchbasePersistentPropertyTests.java +++ b/src/test/java/org/springframework/data/couchbase/core/mapping/BasicCouchbasePersistentPropertyTests.java @@ -130,8 +130,11 @@ public class BasicCouchbasePersistentPropertyTests { * @return the actual BasicCouchbasePersistentProperty instance. */ private CouchbasePersistentProperty getPropertyFor(Field field) { - return new BasicCouchbasePersistentProperty(Property.of(field), entity, SimpleTypeHolder.DEFAULT, - PropertyNameFieldNamingStrategy.INSTANCE); + + ClassTypeInformation type = ClassTypeInformation.from(field.getDeclaringClass()); + + return new BasicCouchbasePersistentProperty(Property.of(type, field), entity, SimpleTypeHolder.DEFAULT, + PropertyNameFieldNamingStrategy.INSTANCE); } /**