Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Let @TempDir fail fast with File annotated element and non-default file system temp directory #3921

Merged
merged 4 commits into from
Aug 12, 2024

Conversation

scordio
Copy link
Contributor

@scordio scordio commented Aug 11, 2024

Overview

Closes #3910.


I hereby agree to the terms of the JUnit Contributor License Agreement.


Definition of Done

@scordio scordio changed the title Add elementType parameter to CloseablePath constructor Let @TempDir fail fast if createTempDirectory returns a non-default file system Path for File annotated element Aug 11, 2024
@scordio scordio changed the title Let @TempDir fail fast if createTempDirectory returns a non-default file system Path for File annotated element Let @TempDir fail fast with File annotated element and non-default file system Path Aug 11, 2024
@scordio scordio changed the title Let @TempDir fail fast with File annotated element and non-default file system Path Let @TempDir fail fast with File annotated element and non-default file system temp directory Aug 11, 2024
@scordio scordio force-pushed the issues/3910-tempdir-on-file branch from 509edf8 to 169bdb1 Compare August 11, 2024 19:58
@scordio scordio force-pushed the issues/3910-tempdir-on-file branch from 169bdb1 to 1591388 Compare August 12, 2024 06:54
@scordio
Copy link
Contributor Author

scordio commented Aug 12, 2024

@marcphilipp, I don't expect more code changes unless you see something that needs to be updated.

The last point I'm considering is updating the Javadoc of @TempDir / TempDirFactory. I'll consider it and finalize it in the next few hours.

@scordio scordio marked this pull request as ready for review August 12, 2024 12:59
@scordio scordio force-pushed the issues/3910-tempdir-on-file branch from 322474d to 37df841 Compare August 12, 2024 13:02
Use linkplain rather than link
@marcphilipp marcphilipp merged commit 4dbd0f9 into junit-team:main Aug 12, 2024
15 checks passed
@marcphilipp
Copy link
Member

@scordio Thanks again! 🙂👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

@TempDir with File annotated elements should fail fast if temp directory file system is not default
2 participants