use of org.springframework.data.mongodb.core.MongoClientFactoryBean in project spring-data-mongodb by spring-projects.
the class MongoNamespaceTests method testMongoSingleton.
@Test
public void testMongoSingleton() throws Exception {
assertThat(ctx.containsBean("noAttrMongo")).isTrue();
MongoClientFactoryBean mfb = (MongoClientFactoryBean) ctx.getBean("&noAttrMongo");
assertThat(getField(mfb, "host")).isNull();
assertThat(getField(mfb, "port")).isNull();
}
Aggregations