use of org.springframework.data.mongodb.repository.query.ConvertingParameterAccessor.PotentiallyConvertingIterator in project spring-data-mongodb by spring-projects.
the class ConvertingParameterAccessorUnitTests method setupAndConvert.
private Object setupAndConvert(Object... parameters) {
MongoParameterAccessor delegate = new StubParameterAccessor(parameters);
PotentiallyConvertingIterator iterator = new ConvertingParameterAccessor(converter, delegate).iterator();
MongoPersistentEntity<?> entity = context.getRequiredPersistentEntity(Entity.class);
MongoPersistentProperty property = entity.getRequiredPersistentProperty("property");
return iterator.nextConverted(property);
}
Aggregations