Search in sources :

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

Example 22 with BucketManagerFactory

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

the class SearchQueryTest method afterClass.

@AfterAll
public static void afterClass() {
    CouchbaseKeyValueConfiguration configuration = CouchbaseKeyValueTcConfiguration.getTcConfiguration();
    BucketManagerFactory keyValueEntityManagerFactory = configuration.get();
    BucketManager keyValueEntityManager = keyValueEntityManagerFactory.getBucketManager(CouchbaseUtil.BUCKET_NAME);
    keyValueEntityManager.delete("city:salvador");
    keyValueEntityManager.delete("city:sao_paulo");
    keyValueEntityManager.delete("city:rio_janeiro");
    keyValueEntityManager.delete("city:manaus");
}
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 23 with BucketManagerFactory

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

the class DynamoDBKeyValueConfigurationTest 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 24 with BucketManagerFactory

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

the class CouchbaseListTest 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:list");
}
Also used : BucketManager(jakarta.nosql.keyvalue.BucketManager) BucketManagerFactory(jakarta.nosql.keyvalue.BucketManagerFactory) AfterAll(org.junit.jupiter.api.AfterAll)

Example 25 with BucketManagerFactory

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

the class CouchbaseDocumentCollectionManagerTest 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");
}
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)

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