use of org.apache.kafka.common.message.DescribeClusterResponseData.DescribeClusterBrokerCollection in project kafka by apache.
the class MessageTest method testDescribeClusterResponseVersions.
@Test
public void testDescribeClusterResponseVersions() throws Exception {
DescribeClusterResponseData data = new DescribeClusterResponseData().setBrokers(new DescribeClusterBrokerCollection(Collections.singletonList(new DescribeClusterBroker().setBrokerId(1).setHost("localhost").setPort(9092).setRack("rack1")).iterator())).setClusterId("clusterId").setControllerId(1).setClusterAuthorizedOperations(10);
testAllMessageRoundTrips(data);
}
Aggregations