[
https://issues.apache.org/jira/browse/KAFKA-20942?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chia-Ping Tsai updated KAFKA-20942:
-----------------------------------
Fix Version/s: 4.5.0
> Refactor empty catch blocks in clients module tests to use assertThrows
> -----------------------------------------------------------------------
>
> Key: KAFKA-20942
> URL: https://issues.apache.org/jira/browse/KAFKA-20942
> Project: Kafka
> Issue Type: Improvement
> Components: clients
> Reporter: Kapil Hadoltikar
> Assignee: Kapil Hadoltikar
> Priority: Minor
> Fix For: 4.5.0
>
>
> Refactor test classes in the clients module that use try-fail-catch blocks
> with empty catch blocks to assert expected exceptions. Update them to use
> JUnit 5's `assertThrows()` to ensure strict and safe exception validation and
> prevent false test positives.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)