[ http://issues.apache.org/jira/browse/DERBY-2087?page=comments#action_12450100 ] Daniel John Debrunner commented on DERBY-2087: ----------------------------------------------
One alternative is to provide a variant of TestConfiguration.singleUseDatabaseDecorator that creates a database but does not set it as the default database. Maybe the name could be passed in: TestConfiguration.singleUseDatabaseDecorator(String dbName) Another alternative is to for tests to always have access to a small number of databases, e.g. a method of BaseJJDBCTestCase like DataSource getDataSource(int dbnum) where num >=2 and <= 4 > 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
