use of org.jnosql.diana.api.key.BucketManager in project jnosql-diana-driver by eclipse.
the class RedisBucketManagerFactoryTest method shouldCreateKeyValueEntityManager.
@Test
public void shouldCreateKeyValueEntityManager() {
BucketManager keyValueEntityManager = managerFactory.getBucketManager(BUCKET_NAME);
assertNotNull(keyValueEntityManager);
}
use of org.jnosql.diana.api.key.BucketManager in project jnosql-artemis by eclipse.
the class MockProducer method getBucketManager.
@Produces
public BucketManager getBucketManager() {
BucketManager bucketManager = Mockito.mock(BucketManager.class);
Person person = Person.builder().withName("Default").build();
when(bucketManager.get("key")).thenReturn(Optional.ofNullable(Value.of(person)));
when(bucketManager.get("user")).thenReturn(Optional.of(Value.of(new User("Default", "Default", 10))));
return bucketManager;
}
use of org.jnosql.diana.api.key.BucketManager in project jnosql-diana-driver by eclipse.
the class KeyValueEntityManagerFactoryTest method shouldCreateKeyValueEntityManager.
@Test
public void shouldCreateKeyValueEntityManager() {
BucketManager keyValueEntityManager = managerFactory.getBucketManager(BUCKET_NAME);
assertNotNull(keyValueEntityManager);
}
use of org.jnosql.diana.api.key.BucketManager in project jnosql-diana-driver by eclipse.
the class KeyValueEntityManagerFactoryTest method shouldCreateKeyValueEntityManager.
@Test
public void shouldCreateKeyValueEntityManager() {
BucketManager keyValueEntityManager = managerFactory.getBucketManager(BUCKET_NAME);
assertNotNull(keyValueEntityManager);
}
use of org.jnosql.diana.api.key.BucketManager in project jnosql-diana-driver by eclipse.
the class CouchbaseDocumentCollectionManagerTest 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");
}
Aggregations