use of com.airbnb.jitney.event.spinaltap.v1.Column in project simple-bigtable by spotify.
the class CellsReadImplTest method testParentDataTypeToDataType.
@Test
public void testParentDataTypeToDataType() throws Exception {
assertEquals(Lists.newArrayList(), cellsRead.parentTypeToCurrentType().apply(Optional.empty()));
assertEquals(Lists.newArrayList(), cellsRead.parentTypeToCurrentType().apply(Optional.of(Column.getDefaultInstance())));
final Cell cell = Cell.getDefaultInstance();
final Column column = Column.newBuilder().addCells(cell).build();
assertEquals(ImmutableList.of(cell), cellsRead.parentTypeToCurrentType().apply(Optional.of(column)));
}
Aggregations