[
https://issues.apache.org/jira/browse/KAFKA-20942?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kapil Hadoltikar updated KAFKA-20942:
-------------------------------------
Summary: Refactor empty catch blocks in clients module tests to use
assertThrows (was: Refactor empty catch blocks in clients module tests to use
assertThrows().)
> 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
> Affects Versions: 4.3.1
> Reporter: Kapil Hadoltikar
> Assignee: Kapil Hadoltikar
> Priority: Minor
>
> 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)