Search in sources :

Example 1 with DocumentCollectionManagerFactory

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);
}
Also used : DocumentCollectionManagerFactory(org.jnosql.diana.api.document.DocumentCollectionManagerFactory) Test(org.junit.jupiter.api.Test)

Example 2 with DocumentCollectionManagerFactory

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);
}
Also used : DocumentCollectionManagerFactory(org.jnosql.diana.api.document.DocumentCollectionManagerFactory) Test(org.junit.jupiter.api.Test)

Example 3 with DocumentCollectionManagerFactory

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);
}
Also used : HashMap(java.util.HashMap) DocumentCollectionManagerFactory(org.jnosql.diana.api.document.DocumentCollectionManagerFactory) Test(org.junit.jupiter.api.Test)

Example 4 with DocumentCollectionManagerFactory

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));
}
Also used : DocumentCollectionManagerFactory(org.jnosql.diana.api.document.DocumentCollectionManagerFactory) Settings(org.jnosql.diana.api.Settings) Test(org.junit.jupiter.api.Test)

Example 5 with DocumentCollectionManagerFactory

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);
}
Also used : DocumentCollectionManagerFactory(org.jnosql.diana.api.document.DocumentCollectionManagerFactory) Test(org.junit.jupiter.api.Test)

Aggregations

DocumentCollectionManagerFactory (org.jnosql.diana.api.document.DocumentCollectionManagerFactory)10 Test (org.junit.jupiter.api.Test)10 HashMap (java.util.HashMap)1 Settings (org.jnosql.diana.api.Settings)1 DocumentConfiguration (org.jnosql.diana.api.document.DocumentConfiguration)1