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);
}
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);
}
Aggregations