Search in sources :

Example 1 with StreamTestWithHashStreamValueRow

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);
}
Also used : StreamTestWithHashStreamValueRow(com.palantir.atlasdb.schema.stream.generated.StreamTestWithHashStreamValueTable.StreamTestWithHashStreamValueRow) Test(org.junit.Test)

Aggregations

StreamTestWithHashStreamValueRow (com.palantir.atlasdb.schema.stream.generated.StreamTestWithHashStreamValueTable.StreamTestWithHashStreamValueRow)1 Test (org.junit.Test)1