use of com.palantir.atlasdb.schema.stream.generated.TestHashComponentsStreamValueTable.TestHashComponentsStreamValueRow in project atlasdb by palantir.
the class StreamTest method testHashRowComponentsValueTable.
@Test
public void testHashRowComponentsValueTable() {
TestHashComponentsStreamValueRow row = TestHashComponentsStreamValueRow.of(TEST_ID, TEST_BLOCK_ID);
byte[] persistedRow = row.persistToBytes();
TestHashComponentsStreamValueRow hydratedRow = TestHashComponentsStreamValueRow.BYTES_HYDRATOR.hydrateFromBytes(persistedRow);
assertEquals(row, hydratedRow);
}
Aggregations