use of com.facebook.presto.server.ClusterStatsResource.ClusterStats 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.presto.server.ClusterStatsResource.ClusterStats in project presto by prestodb.
the class TestThriftClusterStats method testRoundTripSerializeTCompactProtocol.
@Test(dataProvider = "codecCombinations")
public void testRoundTripSerializeTCompactProtocol(ThriftCodec<ClusterStats> readCodec, ThriftCodec<ClusterStats> writeCodec) throws Exception {
ClusterStats clusterStats = getRoundTripSerialize(readCodec, writeCodec, TCompactProtocol::new);
assertSerde(clusterStats);
}
use of com.facebook.presto.server.ClusterStatsResource.ClusterStats 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);
}
Aggregations