[ 
https://issues.apache.org/jira/browse/DIRAPI-118?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Emmanuel Lecharny resolved DIRAPI-118.
--------------------------------------
       Resolution: Fixed
    Fix Version/s:     (was: 1.0.0-RC1)
                   1.0.0-M32

Done with http://svn.apache.org/viewvc?rev=1706838&view=rev

> Use JUnit TemporaryFolder Rule
> ------------------------------
>
>                 Key: DIRAPI-118
>                 URL: https://issues.apache.org/jira/browse/DIRAPI-118
>             Project: Directory Client API
>          Issue Type: Bug
>            Reporter: Stefan Seelmann
>            Assignee: Stefan Seelmann
>             Fix For: 1.0.0-M32
>
>
> In many tests we need to create temporary files and folders. We use methods 
> like:
>   File.createTempFile() 
>   File.deleteOnExit() 
>   File.delete()
>   org.apache.commons.io.FileUtils.deleteDirectory()
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to