db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julius Stroffek (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DERBY-2087) Clean up of a database server directory after running junit tests.
Date Thu, 16 Nov 2006 15:32:40 GMT
    [ http://issues.apache.org/jira/browse/DERBY-2087?page=comments#action_12450426 ] 
Julius Stroffek commented on DERBY-2087:

Will the org.apache.derbyTesting.junit package be used for other tests like performance, stress,
long running, etc.? If yes I think it might be possible that someone would like to create
connections to many databases. Even the number of databases might be configurable.

However all the database resources should be cleaned just after the test finishes. If I will
use JDBCDataSource.getDataSource to get a connection, it is not possible to automatically
remove the directory on a server. What about modifying the DropDatabaseSetup where it will
be possible to register database for removal?

> Clean up of a database server directory after running junit tests.
> ------------------------------------------------------------------
>                 Key: DERBY-2087
>                 URL: http://issues.apache.org/jira/browse/DERBY-2087
>             Project: Derby
>          Issue Type: Improvement
>          Components: Test
>    Affects Versions:
>            Reporter: Julius Stroffek
>            Priority: Minor
>             Fix For:
> If I create a test using multiple connections using code like this 
> 	DataSource ds1 = JDBCDataSource.getDataSource("FIRSTDB1");
> 	JDBCDataSource.setBeanProperty(ds1, "connectionAttributes", "create=true");
> 	Connection conn1 = ds1.getConnection();
> the files created on a server does not get cleaned.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message