[ 
https://issues.apache.org/jira/browse/DERBY-2087?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12466059
 ] 

Julius Stroffek commented on DERBY-2087:
----------------------------------------

I thought about this again anf I found out that my previous comment was a bit 
out. ;-) I had not undertood the test configurations enough before.

I created a TestConfiguration.singleUseDatabaseDecorator(String dbName) as Dan 
suggested and also the methods openConnection(databaseName) to BaseJDBCTestCase 
and all the required infrustructure below. I renamed the 
TestConfiguration.getDatabaseName to getDefaultDatabaseName, since it is more 
accurate now.

I ran derbyall and suites.All suites without failures.

Any further comments are welcomed.

> Clean up of a database server directory after running junit tests.
> ------------------------------------------------------------------
>
>                 Key: DERBY-2087
>                 URL: https://issues.apache.org/jira/browse/DERBY-2087
>             Project: Derby
>          Issue Type: Improvement
>          Components: Test
>    Affects Versions: 10.3.0.0
>            Reporter: Julius Stroffek
>         Assigned To: Julius Stroffek
>            Priority: Minor
>             Fix For: 10.3.0.0
>
>         Attachments: d2087.diff, d2087.stat
>
>
> 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: 
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to