RowRangeAdapter { @VisibleForTesting RangeSet<RowKeyWrapper> rowSetToRangeSet(RowSet btRowSet) { RangeSet<RowKeyWrapper> rangeSet = TreeRangeSet.create(); for (RowRange btRowRange : btRowSet.getRowRangesList()) { rangeSet.add(rowRangeToRange(btRowRange)); } for (ByteString key : btRowSet.getRowKeysList()) { rangeSet.add(Range.singleton(new RowKeyWrapper(key))); } return rangeSet; }    }
@Test public void testAllRowSet2() { RowSet in = RowSet.newBuilder() .addRowRanges( RowRange.newBuilder() .setStartKeyClosed(ByteString.EMPTY) .setEndKeyOpen(ByteString.EMPTY)) .build(); RangeSet<RowKeyWrapper> out = adapter.rowSetToRangeSet(in); RangeSet<RowKeyWrapper> expected = ImmutableRangeSet.<RowKeyWrapper>builder().add(Range.<RowKeyWrapper>all()).build(); assertEquals(expected, out); }