You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "wzhallright (via GitHub)" <gi...@apache.org> on 2023/12/25 07:50:30 UTC

[PR] HDDS-9995. Add static import for assertions and mocks in ozone-manager [ozone]

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

   ## What changes were proposed in this pull request?
   Add static import for assertions and mocks in hadoop-ozone/ozone-manager.
   The goal of this task is to add import static for all assertions and interactions with mocks. Replacing:
   ```
   Assertions.assert<X>(...) -> assert<X>(...)
   Assertions.fail(...) -> fail(...)
   ```
   and
   ```
   Mockito.mock(...) -> mock(...)
   Mockito.verify(...) -> verify(...)
   Mockito.when(...) -> when(...)
   ```
   and
   ```
   ArgumentMatchers.any() -> any()
   ArgumentMatchers.eq() -> eq()
   ArgumentMatchers.matches() -> matches()
   // also:
   // Matchers.<...>()
   ```
   makes the code more readable (shorter lines, less wrapping).
   
   ## What is the link to the Apache JIRA
   [HDDS-9995](https://issues.apache.org/jira/browse/HDDS-9995)
   
   ## CI
   


-- 
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: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org


Re: [PR] HDDS-9995. Add static import for assertions and mocks in ozone-manager [ozone]

Posted by "adoroszlai (via GitHub)" <gi...@apache.org>.
adoroszlai merged PR #5865:
URL: https://github.com/apache/ozone/pull/5865


-- 
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: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org