You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Kapil Hadoltikar (Jira)" <ji...@apache.org> on 2026/08/15 12:45:00 UTC
[jira] [Created] (KAFKA-20942) Refactor empty catch blocks in clients module tests to use assertThrows().
Kapil Hadoltikar created KAFKA-20942:
----------------------------------------
Summary: 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
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)