JimmyWang6 commented on code in PR #18819:
URL: https://github.com/apache/kafka/pull/18819#discussion_r1954294730


##########
clients/src/test/java/org/apache/kafka/clients/admin/KafkaAdminClientTest.java:
##########
@@ -9296,4 +9298,60 @@ public void 
testListShareGroupOffsetsWithErrorInOnePartition() throws Exception
             assertEquals(500, 
partitionToOffsetAndMetadata.get(myTopicPartition3));
         }
     }
+
+    @Test
+    public void testAlterShareGroupOffsets() throws Exception {
+        try (AdminClientUnitTestEnv env = new 
AdminClientUnitTestEnv(mockCluster(1, 0))) {
+            env.kafkaClient().setNodeApiVersions(NodeApiVersions.create());
+            
env.kafkaClient().prepareResponse(prepareFindCoordinatorResponse(Errors.NONE, 
env.cluster().controller()));
+
+            AlterShareGroupOffsetsResponseData data = new 
AlterShareGroupOffsetsResponseData().setResponses(
+                    List.of(
+                        new 
AlterShareGroupOffsetsResponseData.AlterShareGroupOffsetsResponseTopic().setTopicName("foo").setPartitions(List.of(new
 
AlterShareGroupOffsetsResponseData.AlterShareGroupOffsetsResponsePartition().setPartitionIndex(0),
 new 
AlterShareGroupOffsetsResponseData.AlterShareGroupOffsetsResponsePartition().setPartitionIndex(1))),

Review Comment:
   I think there are some incorrect configurations for my ide. I have gone 
through all the files and fixed the issue. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to