Search in sources :

Example 11 with DocumentCollectionManagerFactory

use of jakarta.nosql.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(jakarta.nosql.document.DocumentCollectionManagerFactory) Test(org.junit.jupiter.api.Test)

Example 12 with DocumentCollectionManagerFactory

use of jakarta.nosql.document.DocumentCollectionManagerFactory in project jnosql-diana-driver by eclipse.

the class ArangoDBDocumentConfigurationTest method shouldCreateDocumentCollectionManagerFactory.

@Test
public void shouldCreateDocumentCollectionManagerFactory() {
    ArangoDBDocumentConfiguration configuration = new ArangoDBDocumentConfiguration();
    configuration.addHost("localhost", 8529);
    DocumentCollectionManagerFactory managerFactory = configuration.get();
    assertNotNull(managerFactory);
}
Also used : DocumentCollectionManagerFactory(jakarta.nosql.document.DocumentCollectionManagerFactory) Test(org.junit.jupiter.api.Test)

Example 13 with DocumentCollectionManagerFactory

use of jakarta.nosql.document.DocumentCollectionManagerFactory in project jnosql-diana-driver by eclipse.

the class ElasticsearchDocumentConfigurationTest method shouldCreateDocumentCollectionManagerFactoryByFile.

@Test
public void shouldCreateDocumentCollectionManagerFactoryByFile() {
    DocumentCollectionManagerFactory managerFactory = ElasticsearchDocumentCollectionManagerFactorySupplier.INSTANCE.get();
    assertNotNull(managerFactory);
}
Also used : DocumentCollectionManagerFactory(jakarta.nosql.document.DocumentCollectionManagerFactory) Test(org.junit.jupiter.api.Test)

Example 14 with DocumentCollectionManagerFactory

use of jakarta.nosql.document.DocumentCollectionManagerFactory in project jnosql-diana-driver by eclipse.

the class SolrDocumentConfigurationTest method shouldCreateDocumentCollectionManagerFactoryByFile.

@Test
public void shouldCreateDocumentCollectionManagerFactoryByFile() {
    DocumentConfiguration configuration = new SolrDocumentConfiguration();
    DocumentCollectionManagerFactory managerFactory = configuration.get();
    assertNotNull(managerFactory);
}
Also used : DocumentCollectionManagerFactory(jakarta.nosql.document.DocumentCollectionManagerFactory) DocumentConfiguration(jakarta.nosql.document.DocumentConfiguration) Test(org.junit.jupiter.api.Test)

Example 15 with DocumentCollectionManagerFactory

use of jakarta.nosql.document.DocumentCollectionManagerFactory in project jnosql-diana-driver by eclipse.

the class CouchDBDocumentConfigurationTest method shouldCreateDocumentCollectionManagerFactoryByMap.

@Test
public void shouldCreateDocumentCollectionManagerFactoryByMap() {
    CouchDBDocumentConfiguration configuration = new CouchDBDocumentConfiguration();
    DocumentCollectionManagerFactory managerFactory = configuration.get();
    assertNotNull(managerFactory);
}
Also used : DocumentCollectionManagerFactory(jakarta.nosql.document.DocumentCollectionManagerFactory) Test(org.junit.jupiter.api.Test)

Aggregations

DocumentCollectionManagerFactory (jakarta.nosql.document.DocumentCollectionManagerFactory)16 Test (org.junit.jupiter.api.Test)15 DocumentConfiguration (jakarta.nosql.document.DocumentConfiguration)3 HashMap (java.util.HashMap)2 Settings (jakarta.nosql.Settings)1 DocumentCollectionManagerFactoryMock (org.eclipse.jnosql.mapping.document.configuration.DocumentConfigurationMock.DocumentCollectionManagerFactoryMock)1 Config (org.eclipse.microprofile.config.Config)1