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

Merged
merged 1 commit into from Apr 10, 2012

Conversation

Projects
None yet
2 participants
Contributor

simplyarjen commented Apr 10, 2012

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 dsaff added a commit that referenced this pull request Apr 10, 2012

@dsaff dsaff Merge pull request #419 from simplyarjen/master
Make TemporaryFolder.createFile fail if the file already exists (Fixes #413)
3624da3

@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