Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

TemporaryFolder.newFile should fail if file already exists #413

Closed
simplyarjen opened this Issue · 1 comment

2 participants

@simplyarjen

If I am mistakenly call TemporaryFolder.newFile twice with the same filename (in a single test), I expect the second invocation to throw an exception, as a file by that name already exists (so no "new fresh file" as the javadoc so aptly puts it can be created). Instead (in junit 4.10), it succeeds and simply returns a File object pointing to the existing file.

@dsaff
Owner

Good catch. Thanks!

It may be a while before we can get to this. If you'd like to try your hand at a patch, it would be greatly appreciated!

@dsaff dsaff closed this in 5baa714
@jherault jherault referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.