Search in sources :

Example 16 with BucketManagerFactory

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

the class KeyValueConfigurationTest method shouldCreateKeyValueFactory.

@Test
public void shouldCreateKeyValueFactory() {
    Map<String, Object> map = new HashMap<>();
    map.put("memcached.host.1", "localhost:11211");
    BucketManagerFactory managerFactory = configuration.get(Settings.of(map));
    assertNotNull(managerFactory);
}
Also used : HashMap(java.util.HashMap) BucketManagerFactory(jakarta.nosql.keyvalue.BucketManagerFactory) Test(org.junit.jupiter.api.Test)

Example 17 with BucketManagerFactory

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

the class RiakKeyValueConfigurationTest method shouldCreateKeyValueFactoryFromFile.

@Test
public void shouldCreateKeyValueFactoryFromFile() {
    BucketManagerFactory managerFactory = configuration.get();
    assertNotNull(managerFactory);
}
Also used : BucketManagerFactory(jakarta.nosql.keyvalue.BucketManagerFactory) Test(org.junit.jupiter.api.Test)

Example 18 with BucketManagerFactory

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

the class RedisConfigurationTest method shouldCreateKeyValueFactory.

@Test
public void shouldCreateKeyValueFactory() {
    Map<String, String> map = new HashMap<>();
    map.put("redis-master-hoster", "localhost");
    BucketManagerFactory managerFactory = configuration.getManagerFactory(map);
    assertNotNull(managerFactory);
}
Also used : HashMap(java.util.HashMap) BucketManagerFactory(jakarta.nosql.keyvalue.BucketManagerFactory) Test(org.junit.jupiter.api.Test)

Example 19 with BucketManagerFactory

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

the class RedisConfigurationTest method shouldCreateKeyValueFactoryFromFile.

@Test
public void shouldCreateKeyValueFactoryFromFile() {
    BucketManagerFactory managerFactory = configuration.get();
    assertNotNull(managerFactory);
}
Also used : BucketManagerFactory(jakarta.nosql.keyvalue.BucketManagerFactory) Test(org.junit.jupiter.api.Test)

Example 20 with BucketManagerFactory

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

the class KeyValueConfigurationTest method shouldCreateKeyValueFactoryFromFile.

@Test
public void shouldCreateKeyValueFactoryFromFile() {
    BucketManagerFactory managerFactory = configuration.get();
    assertNotNull(managerFactory);
}
Also used : BucketManagerFactory(jakarta.nosql.keyvalue.BucketManagerFactory) Test(org.junit.jupiter.api.Test)

Aggregations

BucketManagerFactory (jakarta.nosql.keyvalue.BucketManagerFactory)25 Test (org.junit.jupiter.api.Test)13 BucketManager (jakarta.nosql.keyvalue.BucketManager)8 AfterAll (org.junit.jupiter.api.AfterAll)8 HashMap (java.util.HashMap)4 KeyValueConfiguration (jakarta.nosql.keyvalue.KeyValueConfiguration)3 CouchbaseKeyValueConfiguration (org.eclipse.jnosql.communication.couchbase.keyvalue.CouchbaseKeyValueConfiguration)3 Settings (jakarta.nosql.Settings)1 HazelcastKeyValueConfiguration (org.eclipse.jnosql.communication.hazelcast.keyvalue.HazelcastKeyValueConfiguration)1 InfinispanKeyValueConfiguration (org.eclipse.jnosql.communication.infinispan.keyvalue.InfinispanKeyValueConfiguration)1 BucketManagerFactoryMock (org.eclipse.jnosql.mapping.keyvalue.configuration.KeyValueConfigurationMock.BucketManagerFactoryMock)1 Config (org.eclipse.microprofile.config.Config)1