use of org.jnosql.diana.api.key.BucketManager in project jnosql-diana-driver by eclipse.
the class CouchbaseListTest method afterClass.
@AfterAll
public static void afterClass() {
CouchbaseKeyValueConfiguration configuration = new CouchbaseKeyValueConfiguration();
BucketManagerFactory keyValueEntityManagerFactory = configuration.get();
BucketManager keyValueEntityManager = keyValueEntityManagerFactory.getBucketManager(CouchbaseUtil.BUCKET_NAME);
keyValueEntityManager.remove("jnosql:list");
}
use of org.jnosql.diana.api.key.BucketManager in project jnosql-diana-driver by eclipse.
the class CouchbaseMapTest method afterClass.
@AfterAll
public static void afterClass() {
CouchbaseKeyValueConfiguration configuration = new CouchbaseKeyValueConfiguration();
BucketManagerFactory keyValueEntityManagerFactory = configuration.get();
BucketManager keyValueEntityManager = keyValueEntityManagerFactory.getBucketManager(CouchbaseUtil.BUCKET_NAME);
keyValueEntityManager.remove("jnosql:map");
}
use of org.jnosql.diana.api.key.BucketManager in project jnosql-diana-driver by eclipse.
the class DefaultCouchbaseBucketManagerFactoryTest method shouldReturnManager.
@Test
public void shouldReturnManager() {
BucketManager database = factory.getBucketManager(CouchbaseUtil.BUCKET_NAME);
assertNotNull(database);
}
use of org.jnosql.diana.api.key.BucketManager in project jnosql-artemis by eclipse.
the class DefaultKeyValueTemplateProducerTest method shouldReturn.
@Test
public void shouldReturn() {
BucketManager manager = Mockito.mock(BucketManager.class);
KeyValueTemplate repository = producer.get(manager);
assertNotNull(repository);
}
use of org.jnosql.diana.api.key.BucketManager in project jnosql-artemis by eclipse.
the class KeyValueRepositoryBean method create.
@Override
public KeyValueTemplate create(CreationalContext<KeyValueTemplate> creationalContext) {
KeyValueTemplateProducer producer = getInstance(KeyValueTemplateProducer.class);
BucketManager manager = getManager();
return producer.get(manager);
}
Aggregations