Search in sources :

Example 1 with TestHashComponentsStreamValueRow

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

Aggregations

TestHashComponentsStreamValueRow (com.palantir.atlasdb.schema.stream.generated.TestHashComponentsStreamValueTable.TestHashComponentsStreamValueRow)1 Test (org.junit.Test)1