Search in sources :

Example 1 with BucketManagerFactory

use of org.jnosql.diana.api.key.BucketManagerFactory in project jnosql-diana-driver by eclipse.

the class ArangoDBConfigurationTest method shouldCreateKeyValueFactoryFromFile.

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

Example 2 with BucketManagerFactory

use of org.jnosql.diana.api.key.BucketManagerFactory in project jnosql-diana-driver by eclipse.

the class DocumentQueryTest method afterClass.

@AfterAll
public static void afterClass() {
    CouchbaseKeyValueConfiguration configuration = new CouchbaseKeyValueConfiguration();
    BucketManagerFactory keyValueEntityManagerFactory = configuration.get();
    BucketManager keyValueEntityManager = keyValueEntityManagerFactory.getBucketManager(CouchbaseUtil.BUCKET_NAME);
    keyValueEntityManager.remove("person:id");
    keyValueEntityManager.remove("person:id2");
    keyValueEntityManager.remove("person:id3");
    keyValueEntityManager.remove("person:id4");
}
Also used : CouchbaseKeyValueConfiguration(org.jnosql.diana.couchbase.key.CouchbaseKeyValueConfiguration) BucketManager(org.jnosql.diana.api.key.BucketManager) BucketManagerFactory(org.jnosql.diana.api.key.BucketManagerFactory) AfterAll(org.junit.jupiter.api.AfterAll)

Example 3 with BucketManagerFactory

use of org.jnosql.diana.api.key.BucketManagerFactory in project jnosql-diana-driver by eclipse.

the class SearchQueryTest method afterClass.

@AfterAll
public static void afterClass() {
    CouchbaseKeyValueConfiguration configuration = new CouchbaseKeyValueConfiguration();
    BucketManagerFactory keyValueEntityManagerFactory = configuration.get();
    BucketManager keyValueEntityManager = keyValueEntityManagerFactory.getBucketManager(CouchbaseUtil.BUCKET_NAME);
    keyValueEntityManager.remove("city:salvador");
    keyValueEntityManager.remove("city:sao_paulo");
    keyValueEntityManager.remove("city:rio_janeiro");
    keyValueEntityManager.remove("city:manaus");
}
Also used : CouchbaseKeyValueConfiguration(org.jnosql.diana.couchbase.key.CouchbaseKeyValueConfiguration) BucketManager(org.jnosql.diana.api.key.BucketManager) BucketManagerFactory(org.jnosql.diana.api.key.BucketManagerFactory) AfterAll(org.junit.jupiter.api.AfterAll)

Example 4 with BucketManagerFactory

use of org.jnosql.diana.api.key.BucketManagerFactory in project jnosql-diana-driver by eclipse.

the class CouchbaseBucketManagerTest method afterClass.

@AfterAll
public static void afterClass() {
    CouchbaseKeyValueConfiguration configuration = new CouchbaseKeyValueConfiguration();
    BucketManagerFactory keyValueEntityManagerFactory = configuration.get();
    BucketManager keyValueEntityManager = keyValueEntityManagerFactory.getBucketManager(CouchbaseUtil.BUCKET_NAME);
    keyValueEntityManager.remove(KEY_OTAVIO);
    keyValueEntityManager.remove(KEY_SORO);
}
Also used : BucketManager(org.jnosql.diana.api.key.BucketManager) BucketManagerFactory(org.jnosql.diana.api.key.BucketManagerFactory) AfterAll(org.junit.jupiter.api.AfterAll)

Example 5 with BucketManagerFactory

use of org.jnosql.diana.api.key.BucketManagerFactory in project jnosql-diana-driver by eclipse.

the class CouchbaseKeyValueConfigurationTest method shouldCreateKeyValueFactoryFromFile.

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

Aggregations

BucketManagerFactory (org.jnosql.diana.api.key.BucketManagerFactory)19 Test (org.junit.jupiter.api.Test)9 BucketManager (org.jnosql.diana.api.key.BucketManager)8 AfterAll (org.junit.jupiter.api.AfterAll)8 HashMap (java.util.HashMap)3 CouchbaseKeyValueConfiguration (org.jnosql.diana.couchbase.key.CouchbaseKeyValueConfiguration)3 KeyValueConfiguration (org.jnosql.diana.api.key.KeyValueConfiguration)2 HazelcastKeyValueConfiguration (org.jnosql.diana.hazelcast.key.HazelcastKeyValueConfiguration)1 InfinispanKeyValueConfiguration (org.jnosql.diana.infinispan.key.InfinispanKeyValueConfiguration)1