Search in sources :

Example 1 with ColumnFamilyManagerAsync

use of org.jnosql.diana.api.column.ColumnFamilyManagerAsync in project jnosql-artemis by eclipse.

the class DefaultColumnTemplateAsyncProducerTest method shouldReturn.

@Test
public void shouldReturn() {
    ColumnFamilyManagerAsync manager = Mockito.mock(ColumnFamilyManagerAsync.class);
    ColumnTemplateAsync columnRepository = producer.get(manager);
    assertNotNull(columnRepository);
}
Also used : ColumnFamilyManagerAsync(org.jnosql.diana.api.column.ColumnFamilyManagerAsync) Test(org.junit.jupiter.api.Test)

Example 2 with ColumnFamilyManagerAsync

use of org.jnosql.diana.api.column.ColumnFamilyManagerAsync in project jnosql-artemis by eclipse.

the class ColumnTemplateAsyncBean method create.

@Override
public ColumnTemplateAsync create(CreationalContext<ColumnTemplateAsync> creationalContext) {
    ColumnTemplateAsyncProducer producer = getInstance(ColumnTemplateAsyncProducer.class);
    ColumnFamilyManagerAsync columnFamilyManager = getColumnFamilyManager();
    return producer.get(columnFamilyManager);
}
Also used : ColumnFamilyManagerAsync(org.jnosql.diana.api.column.ColumnFamilyManagerAsync) ColumnTemplateAsyncProducer(org.jnosql.artemis.column.ColumnTemplateAsyncProducer)

Example 3 with ColumnFamilyManagerAsync

use of org.jnosql.diana.api.column.ColumnFamilyManagerAsync in project jnosql-diana-driver by eclipse.

the class CassandraColumnFamilyManagerFactoryTest method shouldReturnEntityManagerAsync.

@Test
public void shouldReturnEntityManagerAsync() throws Exception {
    ColumnFamilyManagerAsync columnEntityManager = subject.getAsync(org.jnosql.diana.cassandra.column.Constants.KEY_SPACE);
    assertNotNull(columnEntityManager);
}
Also used : ColumnFamilyManagerAsync(org.jnosql.diana.api.column.ColumnFamilyManagerAsync) Test(org.junit.jupiter.api.Test)

Aggregations

ColumnFamilyManagerAsync (org.jnosql.diana.api.column.ColumnFamilyManagerAsync)3 Test (org.junit.jupiter.api.Test)2 ColumnTemplateAsyncProducer (org.jnosql.artemis.column.ColumnTemplateAsyncProducer)1