use of org.springframework.data.mongodb.core.MongoTemplate.UnwrapAndReadDocumentCallback in project spring-data-mongodb by spring-projects.
the class UnwrapAndReadDocumentCallbackUnitTests method setUp.
@Before
public void setUp() {
when(factory.getExceptionTranslator()).thenReturn(exceptionTranslatorMock);
MongoTemplate template = new MongoTemplate(factory);
MappingMongoConverter converter = new MappingMongoConverter(new DefaultDbRefResolver(factory), new MongoMappingContext());
this.callback = template.new UnwrapAndReadDocumentCallback(converter, Target.class, "collection-1");
}
Aggregations