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