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

Make TemporaryFolder.createFile fail if the file already exists (Fixes #413) #419

Merged
merged 1 commit into from
Apr 10, 2012
Merged

Conversation

simplyarjen
Copy link
Contributor

I've added a check on the return code of File.createNewFile to throw an IllegalStateException if the file already exists. I believe this is the smallest change that fixes the original issue. Some tests are included to verify the new behaviour.

dsaff added a commit that referenced this pull request Apr 10, 2012
Make TemporaryFolder.createFile fail if the file already exists (Fixes #413)
@dsaff dsaff merged commit 3624da3 into junit-team:master Apr 10, 2012
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.

2 participants