Search in sources :

Example 1 with TestHashComponentsStreamIdxRow

use of com.palantir.atlasdb.schema.stream.generated.TestHashComponentsStreamIdxTable.TestHashComponentsStreamIdxRow in project atlasdb by palantir.

the class StreamTest method testHashRowComponentsIdxTable.

@Test
public void testHashRowComponentsIdxTable() {
    TestHashComponentsStreamIdxRow row = TestHashComponentsStreamIdxRow.of(TEST_ID);
    byte[] persistedRow = row.persistToBytes();
    TestHashComponentsStreamIdxRow hydratedRow = TestHashComponentsStreamIdxRow.BYTES_HYDRATOR.hydrateFromBytes(persistedRow);
    assertEquals(row, hydratedRow);
}
Also used : TestHashComponentsStreamIdxRow(com.palantir.atlasdb.schema.stream.generated.TestHashComponentsStreamIdxTable.TestHashComponentsStreamIdxRow) Test(org.junit.Test)

Aggregations

TestHashComponentsStreamIdxRow (com.palantir.atlasdb.schema.stream.generated.TestHashComponentsStreamIdxTable.TestHashComponentsStreamIdxRow)1 Test (org.junit.Test)1