Search in sources :

Example 6 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 HazelcastKeyValueConfiguration();
    BucketManagerFactory managerFactory = configuration.get();
    return managerFactory;
}
Also used : KeyValueConfiguration(jakarta.nosql.keyvalue.KeyValueConfiguration) HazelcastKeyValueConfiguration(org.eclipse.jnosql.communication.hazelcast.keyvalue.HazelcastKeyValueConfiguration) HazelcastKeyValueConfiguration(org.eclipse.jnosql.communication.hazelcast.keyvalue.HazelcastKeyValueConfiguration) BucketManagerFactory(jakarta.nosql.keyvalue.BucketManagerFactory)

Example 7 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)

Example 8 with KeyValueConfiguration

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

the class RedisConfigurationTest 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 9 with KeyValueConfiguration

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

the class RiakKeyValueConfigurationTest 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 10 with KeyValueConfiguration

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

the class KeyValueEntityManagerFactoryTest method setUp.

@BeforeEach
public void setUp() {
    KeyValueConfiguration configuration = new HazelcastKeyValueConfiguration();
    managerFactory = configuration.get();
}
Also used : KeyValueConfiguration(jakarta.nosql.keyvalue.KeyValueConfiguration) BeforeEach(org.junit.jupiter.api.BeforeEach)

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