Search in sources :

Example 1 with TFacebookCompactProtocol

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

the class TestThriftResourceGroupInfo method testRoundTripSerializeTFacebookCompactProtocol.

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

Example 2 with TFacebookCompactProtocol

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

the class TestThriftClusterStats method testRoundTripSerializeTFacebookCompactProtocol.

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

Aggregations

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