In many tests we need to create temporary files and folders. We use methods like:
JUnit 4.7 introduced the TemporaryFolder Rule: http://kentbeck.github.com/junit/javadoc/latest/org/junit/rules/TemporaryFolder.html that guarantees that files and folders are delteted after each test. We should use this rule and remove all handmade temporary file code.
- is cloned by
DIRAPI-118 Use JUnit TemporaryFolder Rule