adoroszlai opened a new pull request, #5935:
URL: https://github.com/apache/ozone/pull/5935

   ## What changes were proposed in this pull request?
   
   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.
   
   This PR updates such assertions leftover by previous tasks (except 
`TestSecureOzoneCluster` is done in #5906).
   
   https://issues.apache.org/jira/browse/HDDS-10075
   
   ## How was this patch tested?
   
   CI:
   https://github.com/adoroszlai/ozone/actions/runs/7427315061


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to