[ http://issues.apache.org/jira/browse/DERBY-2087?page=comments#action_12450422 ] Julius Stroffek commented on DERBY-2087: ----------------------------------------
Will the org.apache.derbyTesting.junit package be used for other tests like performance, stress, long running, etc.? In that case 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 databases 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: 10.3.0.0 > Reporter: Julius Stroffek > Priority: Minor > Fix For: 10.3.0.0 > > > 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
