Attila Doroszlai created HDDS-9952:
--------------------------------------
Summary: 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
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]