empire-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Francis De Brabandere <franci...@gmail.com>
Subject Re: svn commit: r904100 - /incubator/empire-db/trunk/empire-db/src/test/java/org/apache/empire/db/hsql/DBDatabaseDriverHSqlTest.java
Date Thu, 28 Jan 2010 14:27:09 GMT
This is not a proper solution, you expect that file not to be in use
any more after your tests. This indicates somehow that the database
was not closed...

On Thu, Jan 28, 2010 at 3:23 PM,  <doebele@apache.org> wrote:
> Author: doebele
> Date: Thu Jan 28 14:23:30 2010
> New Revision: 904100
>
> URL: http://svn.apache.org/viewvc?rev=904100&view=rev
> Log:
> Problem wit File delete in test-class
>
> Modified:
>    incubator/empire-db/trunk/empire-db/src/test/java/org/apache/empire/db/hsql/DBDatabaseDriverHSqlTest.java
>
> Modified: incubator/empire-db/trunk/empire-db/src/test/java/org/apache/empire/db/hsql/DBDatabaseDriverHSqlTest.java
> URL: http://svn.apache.org/viewvc/incubator/empire-db/trunk/empire-db/src/test/java/org/apache/empire/db/hsql/DBDatabaseDriverHSqlTest.java?rev=904100&r1=904099&r2=904100&view=diff
> ==============================================================================
> --- incubator/empire-db/trunk/empire-db/src/test/java/org/apache/empire/db/hsql/DBDatabaseDriverHSqlTest.java
(original)
> +++ incubator/empire-db/trunk/empire-db/src/test/java/org/apache/empire/db/hsql/DBDatabaseDriverHSqlTest.java
Thu Jan 28 14:23:30 2010
> @@ -63,11 +63,10 @@
>         db.getCreateDDLScript(db.getDriver(), script);
>         script.run(db.getDriver(), conn, false);
>
> -
>     }
>
>     @AfterClass
> -    public static void shutdown() throws SQLException, IOException
> +    public static void shutdown() throws SQLException
>     {
>         try
>         {
> @@ -80,7 +79,11 @@
>         {
>             DBTools.close(conn);
>             // clean up
> -            FileUtils.deleteDirectory(new File(PATH));
> +            try {
> +                FileUtils.deleteDirectory(new File(PATH));
> +            } catch (IOException e) {
> +                // ingore
> +            }
>         }
>
>     }
>
>
>



-- 
http://www.somatik.be
Microsoft gives you windows, Linux gives you the whole house.

Mime
View raw message