Search in sources :

Example 1 with DocumentCollectionManagerAsync

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);
}
Also used : DocumentCollectionManagerAsync(org.jnosql.diana.api.document.DocumentCollectionManagerAsync) Test(org.junit.jupiter.api.Test)

Example 2 with DocumentCollectionManagerAsync

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);
}
Also used : DocumentTemplateAsyncProducer(org.jnosql.artemis.document.DocumentTemplateAsyncProducer) DocumentCollectionManagerAsync(org.jnosql.diana.api.document.DocumentCollectionManagerAsync)

Example 3 with DocumentCollectionManagerAsync

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);
}
Also used : DocumentCollectionManagerAsync(org.jnosql.diana.api.document.DocumentCollectionManagerAsync) Test(org.junit.jupiter.api.Test)

Aggregations

DocumentCollectionManagerAsync (org.jnosql.diana.api.document.DocumentCollectionManagerAsync)3 Test (org.junit.jupiter.api.Test)2 DocumentTemplateAsyncProducer (org.jnosql.artemis.document.DocumentTemplateAsyncProducer)1