Search in sources :

Example 1 with TestHashComponentsStreamMetadataRow

use of com.palantir.atlasdb.schema.stream.generated.TestHashComponentsStreamMetadataTable.TestHashComponentsStreamMetadataRow in project atlasdb by palantir.

the class StreamTest method testHashRowComponentsMetadataTable.

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

Aggregations

TestHashComponentsStreamMetadataRow (com.palantir.atlasdb.schema.stream.generated.TestHashComponentsStreamMetadataTable.TestHashComponentsStreamMetadataRow)1 Test (org.junit.Test)1