use of org.springframework.data.mapping.context.MappingContext in project spring-data-mongodb by spring-projects.
the class MongoOperationsUnitTests method operationsSetUp.
@Before
public final void operationsSetUp() {
person = new Person("Oliver");
persons = Arrays.asList(person);
converter = new AbstractMongoConverter(null) {
public void write(Object t, Bson bson) {
((Document) bson).put("firstName", person.getFirstName());
}
@SuppressWarnings("unchecked")
public <S extends Object> S read(Class<S> clazz, Bson bson) {
return (S) person;
}
public MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> getMappingContext() {
return null;
}
public Object convertToMongoType(Object obj, TypeInformation<?> typeInformation) {
return null;
}
public DBRef toDBRef(Object object, MongoPersistentProperty referingProperty) {
return null;
}
@Override
public MongoTypeMapper getTypeMapper() {
return null;
}
};
}
Aggregations