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);
}
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));
}
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);
}
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);
}
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));
}
Aggregations