use of org.jnosql.diana.api.document.DocumentCollectionManagerFactory in project jnosql-diana-driver by eclipse.
the class CouchbaseDocumentConfigurationTest method shouldCreateDocumentCollectionManagerFactoryByMap.
@Test
public void shouldCreateDocumentCollectionManagerFactoryByMap() {
CouchbaseDocumentConfiguration configuration = new CouchbaseDocumentConfiguration();
DocumentCollectionManagerFactory managerFactory = configuration.get();
assertNotNull(managerFactory);
}
use of org.jnosql.diana.api.document.DocumentCollectionManagerFactory in project jnosql-diana-driver by eclipse.
the class ArangoDBDocumentConfigurationTest method shouldCreateDocumentCollectionManagerFactory.
@Test
public void shouldCreateDocumentCollectionManagerFactory() {
ArangoDBDocumentConfiguration configuration = new ArangoDBDocumentConfiguration();
configuration.setHost("172.17.0.2");
DocumentCollectionManagerFactory managerFactory = configuration.get();
assertNotNull(managerFactory);
}
use of org.jnosql.diana.api.document.DocumentCollectionManagerFactory in project jnosql-diana-driver by eclipse.
the class MongoDBDocumentConfigurationTest method shouldCreateDocumentCollectionManagerFactoryByMap.
@Test
public void shouldCreateDocumentCollectionManagerFactoryByMap() {
Map<String, String> map = new HashMap<>();
map.put("mongodb-server-host-1", "172.17.0.2:27017");
MongoDBDocumentConfiguration configuration = new MongoDBDocumentConfiguration();
DocumentCollectionManagerFactory managerFactory = configuration.get(map);
assertNotNull(managerFactory);
}
use of org.jnosql.diana.api.document.DocumentCollectionManagerFactory in project jnosql-diana-driver by eclipse.
the class MongoDBDocumentConfigurationTest method shouldCreateSettings.
@Test
public void shouldCreateSettings() {
Settings settings = Settings.builder().put("mongodb-server-host-1", "172.17.0.2:27017").build();
MongoDBDocumentConfiguration configuration = new MongoDBDocumentConfiguration();
DocumentCollectionManagerFactory managerFactory = configuration.get(settings);
assertNotNull(managerFactory);
assertNotNull(configuration.getAsync(settings));
}
use of org.jnosql.diana.api.document.DocumentCollectionManagerFactory in project jnosql-diana-driver by eclipse.
the class OrientDBDocumentConfigurationTest method shouldCreateDocumentCollectionManagerFactory.
@Test
public void shouldCreateDocumentCollectionManagerFactory() {
OrientDBDocumentConfiguration configuration = new OrientDBDocumentConfiguration();
configuration.setHost("172.17.0.2");
configuration.setUser("root");
configuration.setPassword("rootpwd");
DocumentCollectionManagerFactory managerFactory = configuration.get();
assertNotNull(managerFactory);
}
Aggregations