Search in sources :

Example 6 with BucketManagerFactory

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

the class CouchbaseSetTest method afterClass.

@AfterAll
public static void afterClass() {
    CouchbaseKeyValueConfiguration configuration = CouchbaseKeyValueTcConfiguration.getTcConfiguration();
    BucketManagerFactory keyValueEntityManagerFactory = configuration.get();
    BucketManager keyValueEntityManager = keyValueEntityManagerFactory.getBucketManager(CouchbaseUtil.BUCKET_NAME);
    keyValueEntityManager.delete("jnosql:set");
}
Also used : BucketManager(jakarta.nosql.keyvalue.BucketManager) BucketManagerFactory(jakarta.nosql.keyvalue.BucketManagerFactory) AfterAll(org.junit.jupiter.api.AfterAll)

Example 7 with BucketManagerFactory

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

the class DocumentQueryTest method afterClass.

@AfterAll
public static void afterClass() {
    CouchbaseKeyValueConfiguration configuration = CouchbaseKeyValueTcConfiguration.getTcConfiguration();
    BucketManagerFactory keyValueEntityManagerFactory = configuration.get();
    BucketManager keyValueEntityManager = keyValueEntityManagerFactory.getBucketManager(CouchbaseUtil.BUCKET_NAME);
    keyValueEntityManager.delete("person:id");
    keyValueEntityManager.delete("person:id2");
    keyValueEntityManager.delete("person:id3");
    keyValueEntityManager.delete("person:id4");
}
Also used : CouchbaseKeyValueConfiguration(org.eclipse.jnosql.communication.couchbase.keyvalue.CouchbaseKeyValueConfiguration) BucketManager(jakarta.nosql.keyvalue.BucketManager) BucketManagerFactory(jakarta.nosql.keyvalue.BucketManagerFactory) AfterAll(org.junit.jupiter.api.AfterAll)

Example 8 with BucketManagerFactory

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

the class CouchbaseBucketManagerTest method afterClass.

@AfterAll
public static void afterClass() {
    CouchbaseKeyValueConfiguration configuration = CouchbaseKeyValueTcConfiguration.getTcConfiguration();
    BucketManagerFactory keyValueEntityManagerFactory = configuration.get();
    BucketManager keyValueEntityManager = keyValueEntityManagerFactory.getBucketManager(CouchbaseUtil.BUCKET_NAME);
    keyValueEntityManager.delete(KEY_OTAVIO);
    keyValueEntityManager.delete(KEY_SORO);
}
Also used : BucketManager(jakarta.nosql.keyvalue.BucketManager) BucketManagerFactory(jakarta.nosql.keyvalue.BucketManagerFactory) AfterAll(org.junit.jupiter.api.AfterAll)

Example 9 with BucketManagerFactory

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

the class CouchbaseQueueTest method afterClass.

@AfterAll
public static void afterClass() {
    CouchbaseKeyValueConfiguration configuration = CouchbaseKeyValueTcConfiguration.getTcConfiguration();
    BucketManagerFactory keyValueEntityManagerFactory = configuration.get();
    BucketManager keyValueEntityManager = keyValueEntityManagerFactory.getBucketManager(CouchbaseUtil.BUCKET_NAME);
    keyValueEntityManager.delete("jnosql:queue");
}
Also used : BucketManager(jakarta.nosql.keyvalue.BucketManager) BucketManagerFactory(jakarta.nosql.keyvalue.BucketManagerFactory) AfterAll(org.junit.jupiter.api.AfterAll)

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