[prev in list] [next in list] [prev in thread] [next in thread] 

List:       hadoop-dev
Subject:    [jira] [Created] (HADOOP-18866) Refactor @Test(expected) with assertThrows
From:       "Taher Ghaleb (Jira)" <jira () apache ! org>
Date:       2023-08-25 13:42:00
Message-ID: JIRA.13548659.1692970904000.34485.1692970920021 () Atlassian ! JIRA
[Download RAW message or body]

Taher Ghaleb created HADOOP-18866:
-------------------------------------

             Summary: Refactor @Test(expected) with assertThrows
                 Key: HADOOP-18866
                 URL: https://issues.apache.org/jira/browse/HADOOP-18866
             Project: Hadoop Common
          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.

The smell occurs when exception handling can alternatively be implemented using \
assertion rather than annotation: using  {{assertThrows(Exception.class, () -> \
\{...});}}  instead of  {{{}@Test(expected = Exception.class){}}}.

While there are many cases like this, we aim in this pull request to get your \
feedback on this particular test smell and its refactoring. Thanks in advance for \
your input.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: common-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-dev-help@hadoop.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic