use of org.springframework.data.mongodb.MongoDbFactory in project spring-cloud-connectors by spring-cloud.
the class MongoDbFactoryConfigWithServiceConfig method withConfigOnlyConnectionPerHostSpecified.
@Test
public void withConfigOnlyConnectionPerHostSpecified() {
ApplicationContext testContext = getTestApplicationContext(MongoDbFactoryConfigWithServiceConfig.class, createService("my-service"));
MongoDbFactory connector = testContext.getBean("connectionPerHost50_MaxWaitUnspecified_WriteConcernUnspecified", getConnectorType());
MongoDbFactoryCloudConfigTestHelper.assertConfigProperties(connector, null, 50, 120000);
}
use of org.springframework.data.mongodb.MongoDbFactory in project spring-cloud-connectors by spring-cloud.
the class MongoDbFactoryConfigWithServiceConfig method withConfigAllOptionsSpecifiedWriteConcernNone.
@Test
public void withConfigAllOptionsSpecifiedWriteConcernNone() {
ApplicationContext testContext = getTestApplicationContext(MongoDbFactoryConfigWithServiceConfig.class, createService("my-service"));
MongoDbFactory connector = testContext.getBean("connectionPerHost50_MaxWait200_WriteConcernNone", getConnectorType());
MongoDbFactoryCloudConfigTestHelper.assertConfigProperties(connector, "none", 50, 200);
}
Aggregations