use of org.jnosql.diana.api.column.ColumnFamilyManager in project jnosql-artemis by eclipse.
the class MockProducer method getColumnFamilyManagerMock.
@Produces
@Database(value = DatabaseType.COLUMN, provider = "columnRepositoryMock")
public ColumnFamilyManager getColumnFamilyManagerMock() {
ColumnEntity entity = ColumnEntity.of("Person");
entity.add(org.jnosql.diana.api.column.Column.of("name", "columnRepositoryMock"));
entity.add(org.jnosql.diana.api.column.Column.of("age", 10));
ColumnFamilyManager manager = mock(ColumnFamilyManager.class);
when(manager.insert(Mockito.any(ColumnEntity.class))).thenReturn(entity);
return manager;
}
Aggregations