[
https://issues.apache.org/jira/browse/HDDS-9952?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Attila Doroszlai updated HDDS-9952:
-----------------------------------
Status: Patch Available (was: Open)
> Simplify assertions
> -------------------
>
> Key: HDDS-9952
> URL: https://issues.apache.org/jira/browse/HDDS-9952
> Project: Apache Ozone
> Issue Type: Improvement
> Components: test
> Reporter: Attila Doroszlai
> Assignee: Attila Doroszlai
> Priority: Major
>
> Assertions in the form:
> {code}
> assertTrue(<x> == <y>)
> assertEquals(null, <x>) or assertTrue(<x> == null)
> assertTrue(<x> != null)
> assertEquals(<boolean>, <x>)
> {code}
> can be simplified to:
> {code}
> assertEquals(<x>, <y>)
> assertNull(<x>)
> assertNotNull(<x>)
> assertTrue/assertFalse(<x>)
> {code}
> Not only are these simpler, some of them also provide more information in
> case of failure.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]