use of org.jnosql.diana.api.document.DocumentCollectionManagerAsync in project jnosql-artemis by eclipse.
the class DefaultDocumentTemplateAsyncProducerTest method shouldReturn.
@Test
public void shouldReturn() {
DocumentCollectionManagerAsync manager = Mockito.mock(DocumentCollectionManagerAsync.class);
DocumentTemplateAsync documentRepository = producer.get(manager);
assertNotNull(documentRepository);
}
use of org.jnosql.diana.api.document.DocumentCollectionManagerAsync in project jnosql-artemis by eclipse.
the class DocumentTemplateAsyncBean method create.
@Override
public DocumentTemplateAsync create(CreationalContext<DocumentTemplateAsync> creationalContext) {
DocumentTemplateAsyncProducer producer = getInstance(DocumentTemplateAsyncProducer.class);
DocumentCollectionManagerAsync manager = getManager();
return producer.get(manager);
}
use of org.jnosql.diana.api.document.DocumentCollectionManagerAsync in project jnosql-diana-driver by eclipse.
the class ArangoDBDocumentCollectionManagerFactoryTest method shouldCreateEntityManagerAsync.
@Test
public void shouldCreateEntityManagerAsync() {
DocumentCollectionManagerAsync database = managerFactory.getAsync("database");
assertNotNull(database);
}
Aggregations