[
https://issues.apache.org/jira/browse/HDDS-10277?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Attila Doroszlai resolved HDDS-10277.
-------------------------------------
Fix Version/s: 1.5.0
Resolution: Done
> Remove unnecessary fail() from tests
> ------------------------------------
>
> Key: HDDS-10277
> URL: https://issues.apache.org/jira/browse/HDDS-10277
> Project: Apache Ozone
> Issue Type: Sub-task
> Components: test
> Reporter: Attila Doroszlai
> Assignee: Zhaohui Wang
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.5.0
>
>
> {code}
> try {
> <some action>
> } catch (...) {
> fail()
> }
> {code}
> {{try-catch-fail}} can be removed if there are other assertions in the test
> case.
> {{throws Exception}} may need to be added to the signature. If so, please
> also remove {{public}} visibility modifier, if present, from the method being
> changed. (JUnit4 needed it, JUnit5 does not.)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]