directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny (JIRA)" <>
Subject [jira] [Updated] (DIRSHARED-66) Use JUnit TemporaryFolder Rule
Date Mon, 23 May 2011 13:02:47 GMT


Emmanuel Lecharny updated DIRSHARED-66:

    Fix Version/s:     (was: 1.0.0-M4)

It's an excellent idea, but I think it should be postponed. We first have to fix real issues.
When we reach the RC state, then we can check the tests and use the Junit temporary rule.

> Use JUnit TemporaryFolder Rule
> ------------------------------
>                 Key: DIRSHARED-66
>                 URL:
>             Project: Directory Shared
>          Issue Type: Improvement
>            Reporter: Stefan Seelmann
>            Assignee: Stefan Seelmann
>             Fix For: 1.0.0-RC1
> In many tests we need to create temporary files and folders. We use methods like:
>   File.createTempFile() 
>   File.deleteOnExit() 
>   File.delete()
> JUnit 4.7 introduced the TemporaryFolder Rule:
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 is automatically generated by JIRA.
For more information on JIRA, see:

View raw message