use of com.palantir.atlasdb.schema.stream.generated.StreamTestWithHashStreamIdxTable.StreamTestWithHashStreamIdxRow in project atlasdb by palantir.
the class StreamTest method testStreamStoreWithHashIdxRowPersistToBytesAndHydrateSucceeds.
@Test
public void testStreamStoreWithHashIdxRowPersistToBytesAndHydrateSucceeds() {
StreamTestWithHashStreamIdxRow row = StreamTestWithHashStreamIdxRow.of(5L);
byte[] persistedRow = row.persistToBytes();
StreamTestWithHashStreamIdxRow hydratedRow = StreamTestWithHashStreamIdxRow.BYTES_HYDRATOR.hydrateFromBytes(persistedRow);
assertEquals(row, hydratedRow);
}
Aggregations