Search in sources :

Example 6 with DocumentConfiguration

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

the class OrientDBDocumentConfigurationTest method shouldReturnFromConfiguration.

@Test
public void shouldReturnFromConfiguration() {
    DocumentConfiguration configuration = DocumentConfiguration.getConfiguration();
    Assertions.assertNotNull(configuration);
    Assertions.assertTrue(configuration instanceof DocumentConfiguration);
}
Also used : DocumentConfiguration(jakarta.nosql.document.DocumentConfiguration) Test(org.junit.jupiter.api.Test)

Example 7 with DocumentConfiguration

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

the class MongoDBDocumentConfigurationTest method shouldReturnErrorWhendSettingsIsNull.

@Test
public void shouldReturnErrorWhendSettingsIsNull() {
    DocumentConfiguration configuration = new MongoDBDocumentConfiguration();
    assertThrows(NullPointerException.class, () -> configuration.get(null));
}
Also used : DocumentConfiguration(jakarta.nosql.document.DocumentConfiguration) Test(org.junit.jupiter.api.Test)

Example 8 with DocumentConfiguration

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

the class MongoDBDocumentConfigurationTest method shouldReturnFromConfiguration.

@Test
public void shouldReturnFromConfiguration() {
    DocumentConfiguration configuration = DocumentConfiguration.getConfiguration();
    Assertions.assertNotNull(configuration);
    Assertions.assertTrue(configuration instanceof DocumentConfiguration);
}
Also used : DocumentConfiguration(jakarta.nosql.document.DocumentConfiguration) Test(org.junit.jupiter.api.Test)

Example 9 with DocumentConfiguration

use of jakarta.nosql.document.DocumentConfiguration 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 10 with DocumentConfiguration

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

the class SolrDocumentConfigurationTest method shouldReturnErrorWhendSettingsIsNull.

@Test
public void shouldReturnErrorWhendSettingsIsNull() {
    DocumentConfiguration configuration = new SolrDocumentConfiguration();
    assertThrows(NullPointerException.class, () -> configuration.get(null));
}
Also used : DocumentConfiguration(jakarta.nosql.document.DocumentConfiguration) Test(org.junit.jupiter.api.Test)

Aggregations

DocumentConfiguration (jakarta.nosql.document.DocumentConfiguration)11 Test (org.junit.jupiter.api.Test)10 DocumentCollectionManagerFactory (jakarta.nosql.document.DocumentCollectionManagerFactory)3 Settings (jakarta.nosql.Settings)1 ConfigurationException (org.eclipse.jnosql.mapping.configuration.ConfigurationException)1 SettingsConverter (org.eclipse.jnosql.mapping.configuration.SettingsConverter)1 Reflections (org.eclipse.jnosql.mapping.reflection.Reflections)1 Config (org.eclipse.microprofile.config.Config)1