use of org.jnosql.diana.api.key.BucketManagerFactory in project jnosql-diana-driver by eclipse.
the class CouchbaseQueueTest 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:queue");
}
use of org.jnosql.diana.api.key.BucketManagerFactory in project jnosql-diana-driver by eclipse.
the class CouchbaseSetTest 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:set");
}
use of org.jnosql.diana.api.key.BucketManagerFactory in project jnosql-diana-driver by eclipse.
the class KeyValueEntityManagerFactoryUtils method get.
public static BucketManagerFactory get() {
KeyValueConfiguration configuration = new InfinispanKeyValueConfiguration();
BucketManagerFactory managerFactory = configuration.get();
return managerFactory;
}
use of org.jnosql.diana.api.key.BucketManagerFactory in project jnosql-diana-driver by eclipse.
the class KeyValueConfigurationTest method shouldCreateKeyValueFactoryFromFile.
@Test
public void shouldCreateKeyValueFactoryFromFile() {
BucketManagerFactory managerFactory = configuration.get();
assertNotNull(managerFactory);
}
use of org.jnosql.diana.api.key.BucketManagerFactory in project jnosql-diana-driver by eclipse.
the class KeyValueConfigurationTest method shouldCreateKeyValueFactory.
@Test
public void shouldCreateKeyValueFactory() {
Map<String, String> map = new HashMap<>();
BucketManagerFactory managerFactory = configuration.get(map);
assertNotNull(managerFactory);
}
Aggregations