Search in sources :

Example 1 with TBinaryProtocol

use of com.facebook.drift.protocol.TBinaryProtocol in project presto by prestodb.

the class TestThriftClusterStats method testRoundTripSerializeBinaryProtocol.

@Test(dataProvider = "codecCombinations")
public void testRoundTripSerializeBinaryProtocol(ThriftCodec<ClusterStats> readCodec, ThriftCodec<ClusterStats> writeCodec) throws Exception {
    ClusterStats clusterStats = getRoundTripSerialize(readCodec, writeCodec, TBinaryProtocol::new);
    assertSerde(clusterStats);
}
Also used : ClusterStats(com.facebook.presto.server.ClusterStatsResource.ClusterStats) TBinaryProtocol(com.facebook.drift.protocol.TBinaryProtocol) Test(org.testng.annotations.Test)

Example 2 with TBinaryProtocol

use of com.facebook.drift.protocol.TBinaryProtocol in project presto by prestodb.

the class TestThriftResourceGroupInfo method testRoundTripSerializeBinaryProtocol.

@Test(dataProvider = "codecCombinations")
public void testRoundTripSerializeBinaryProtocol(ThriftCodec<ResourceGroupInfo> readCodec, ThriftCodec<ResourceGroupInfo> writeCodec) throws Exception {
    ResourceGroupInfo groupInfo = getRoundTripSerialize(readCodec, writeCodec, TBinaryProtocol::new);
    assertSerde(groupInfo);
}
Also used : TBinaryProtocol(com.facebook.drift.protocol.TBinaryProtocol) ResourceGroupInfo(com.facebook.presto.server.ResourceGroupInfo) Test(org.testng.annotations.Test)

Aggregations

TBinaryProtocol (com.facebook.drift.protocol.TBinaryProtocol)2 Test (org.testng.annotations.Test)2 ClusterStats (com.facebook.presto.server.ClusterStatsResource.ClusterStats)1 ResourceGroupInfo (com.facebook.presto.server.ResourceGroupInfo)1