Dpk376 opened a new pull request, #22577: URL: https://github.com/apache/kafka/pull/22577
## Summary \`ToolsUtils\` in the \`tools\` module contains five public methods (\`printMetrics\`, \`prettyPrintTable\`, \`validateBootstrapServer\`, \`duplicates\`, \`minus\`) with no corresponding unit tests. This PR adds \`ToolsUtilsTest.java\` covering: - \`validateBootstrapServer\` — valid single host, valid CSV hosts, null/empty/blank/no-port/mixed-invalid all throw \`IllegalArgumentException\` - \`duplicates\` — no dupes, single dup, multiple dups, empty list, all-same - \`minus\` — removes present elements, ignores absent, empty set, no-args copy, does not mutate original - \`prettyPrintTable\` — headers present in output, rows present, column widths aligned to max value length All tests are pure unit tests (no cluster required). ### JIRA https://issues.apache.org/jira/browse/KAFKA-20692 -- 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]
