[
https://issues.apache.org/jira/browse/HDDS-9828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17793019#comment-17793019
]
Attila Doroszlai commented on HDDS-9828:
----------------------------------------
For JUnit5 please use
{{[@TempDir|https://junit.org/junit5/docs/current/user-guide/#writing-tests-built-in-extensions-TempDirectory]}}
instead.
> Do not use Files.createTempFile in tests
> ----------------------------------------
>
> Key: HDDS-9828
> URL: https://issues.apache.org/jira/browse/HDDS-9828
> Project: Apache Ozone
> Issue Type: Bug
> Components: test
> Reporter: Tsz-wo Sze
> Priority: Major
>
> Test file must be created under the test directory. When using
> Files.createTempFile, it could create files outside the test directory.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]