Search in sources :

Example 1 with KeyValueConfiguration

use of jakarta.nosql.keyvalue.KeyValueConfiguration in project jnosql-diana-driver by eclipse.

the class ArangoDBConfigurationTest method shouldReturnFromConfiguration.

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

Example 2 with KeyValueConfiguration

use of jakarta.nosql.keyvalue.KeyValueConfiguration in project jnosql-diana-driver by eclipse.

the class CouchbaseKeyValueConfigurationTest method shouldReturnFromConfiguration.

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

Example 3 with KeyValueConfiguration

use of jakarta.nosql.keyvalue.KeyValueConfiguration in project jnosql-diana-driver by eclipse.

the class KeyValueEntityManagerFactoryUtils method get.

public static BucketManagerFactory get() {
    KeyValueConfiguration configuration = new InfinispanKeyValueConfiguration();
    BucketManagerFactory managerFactory = configuration.get();
    return managerFactory;
}
Also used : KeyValueConfiguration(jakarta.nosql.keyvalue.KeyValueConfiguration) InfinispanKeyValueConfiguration(org.eclipse.jnosql.communication.infinispan.keyvalue.InfinispanKeyValueConfiguration) InfinispanKeyValueConfiguration(org.eclipse.jnosql.communication.infinispan.keyvalue.InfinispanKeyValueConfiguration) BucketManagerFactory(jakarta.nosql.keyvalue.BucketManagerFactory)

Example 4 with KeyValueConfiguration

use of jakarta.nosql.keyvalue.KeyValueConfiguration in project jnosql-diana-driver by eclipse.

the class HazelcastBucketManagerSupplier method get.

@Override
public BucketManager get() {
    KeyValueConfiguration configuration = new HazelcastKeyValueConfiguration();
    final BucketManagerFactory factory = configuration.get();
    return factory.getBucketManager(BUCKET);
}
Also used : KeyValueConfiguration(jakarta.nosql.keyvalue.KeyValueConfiguration) BucketManagerFactory(jakarta.nosql.keyvalue.BucketManagerFactory)

Example 5 with KeyValueConfiguration

use of jakarta.nosql.keyvalue.KeyValueConfiguration in project jnosql-diana-driver by eclipse.

the class KeyValueConfigurationTest method shouldReturnFromConfiguration.

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

Aggregations

KeyValueConfiguration (jakarta.nosql.keyvalue.KeyValueConfiguration)12 Test (org.junit.jupiter.api.Test)6 BucketManagerFactory (jakarta.nosql.keyvalue.BucketManagerFactory)3 BeforeEach (org.junit.jupiter.api.BeforeEach)2 Settings (jakarta.nosql.Settings)1 HazelcastKeyValueConfiguration (org.eclipse.jnosql.communication.hazelcast.keyvalue.HazelcastKeyValueConfiguration)1 InfinispanKeyValueConfiguration (org.eclipse.jnosql.communication.infinispan.keyvalue.InfinispanKeyValueConfiguration)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