Search in sources :

Example 1 with StreamTestWithHashStreamIdxRow

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

Aggregations

StreamTestWithHashStreamIdxRow (com.palantir.atlasdb.schema.stream.generated.StreamTestWithHashStreamIdxTable.StreamTestWithHashStreamIdxRow)1 Test (org.junit.Test)1