Description
Assertions in the form:
assertTrue(<x> == <y>) assertEquals(null, <x>) or assertTrue(<x> == null) assertTrue(<x> != null) assertEquals(<boolean>, <x>)
can be simplified to:
assertEquals(<x>, <y>) assertNull(<x>) assertNotNull(<x>) assertTrue/assertFalse(<x>)
Not only are these simpler, some of them also provide more information in case of failure.
Attachments
Issue Links
- is a child of
-
HDDS-9931 Improve unit/integration tests
- Open
There are no Sub-Tasks for this issue.