You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Taher Ghaleb (Jira)" <ji...@apache.org> on 2023/08/25 00:08:00 UTC

[jira] [Created] (KAFKA-15403) Refactor @Test(expected) annotation with assertThrows

Taher Ghaleb created KAFKA-15403:
------------------------------------

             Summary: Refactor @Test(expected) annotation with assertThrows
                 Key: KAFKA-15403
                 URL: https://issues.apache.org/jira/browse/KAFKA-15403
             Project: Kafka
          Issue Type: Improvement
            Reporter: Taher Ghaleb


I am working on research that investigates test smell refactoring in which we identify alternative implementations of test cases, study how commonly used these refactorings are, and assess how acceptable they are in practice.

In particular, this smell is when annotation, {*}@Test(expected){*}, is used for exception handling instead of assertion, {*}assertThrows{*}.

We would like to get your feedback on this particular test refactoring. Thanks in advance for your input.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)