[
https://issues.apache.org/jira/browse/ZOOKEEPER-4738?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Zili Chen reassigned ZOOKEEPER-4738:
------------------------------------
Assignee: Zili Chen
> Clean test cases by refactoring assertFalse(equals()) with assertNotEquals
> --------------------------------------------------------------------------
>
> Key: ZOOKEEPER-4738
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4738
> Project: ZooKeeper
> Issue Type: Improvement
> Reporter: Taher Ghaleb
> Assignee: Zili Chen
> Priority: Minor
> Labels: pull-request-available
> Time Spent: 20m
> Remaining Estimate: 0h
>
> 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.
> This smell occurs when inappropriate assertions are used, while there exist
> better alternatives. For example, *{{assertFalse(x.equals( y ));}}* can be
> refactored using {*}{{assertNotEquals(x, y);}}{*}.
> I would like 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)