db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel John Debrunner (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DERBY-2087) Clean up of a database server directory after running junit tests.
Date Wed, 15 Nov 2006 16:30:38 GMT
    [ 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

  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:
>            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