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


##########
tools/src/test/java/org/apache/kafka/tools/consumer/group/ConsumerGroupCommandTest.java:
##########
@@ -54,4 +62,59 @@ public void testValidateRegexCommandWithInvalidRegex() {
             output
         );
     }
+
+    @Test
+    public void testListWithUnrecognizedNewConsumerOption() {
+        String[] cgcArgs = new String[]{"--new-consumer", 
"--bootstrap-server", DUMMY_BOOTSTRAP_SERVERS, "--list"};
+        assertThrows(OptionException.class, () -> 
ConsumerGroupCommandOptions.fromArgs(cgcArgs));
+    }
+
+    @Test
+    public void testConsumerGroupStatesFromString() {

Review Comment:
   Could you use `ParameterizedTest` to refactor it?



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