chia7712 commented on code in PR #24241:
URL: https://github.com/apache/kafka/pull/24241#discussion_r4578997952


##########
clients/src/test/java/org/apache/kafka/clients/consumer/KafkaConsumerTest.java:
##########
@@ -754,6 +754,14 @@ public void 
shouldIgnoreGroupInstanceIdForEmptyGroupId(GroupProtocol groupProtoc
         consumer = newConsumer(config, new ByteArrayDeserializer(), new 
ByteArrayDeserializer());
     }
 
+    @ParameterizedTest
+    @EnumSource(GroupProtocol.class)
+    public void testSetRebalanceListenerWithoutGroupId(GroupProtocol 
groupProtocol) {
+        consumer = newConsumer(groupProtocol, null);

Review Comment:
   This covers the case where `group.id` is unset. Could we also cover the 
manual assignment case? For example, call `assign()`, then `unsubscribe()` and 
`close()`, and `verifyNoInteractions(listener)`.



-- 
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