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 Tue, 23 Jan 2007 17:31:49 GMT

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

Daniel John Debrunner commented on DERBY-2087:
----------------------------------------------

Is there a good usage case for a test passing true to the singleUseDecorator to indicate the
new database is the default database? Isn't this handled by the existing singleUseDecorator
method that just takes a test?

If not, a clearer api may be to make the three argument singleUseDecorator private to TestConfiguration
and have a two argument version, possibly with a changed name:

 additionalDatabaseDecorator(Test test, String dbName)

> 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, d2087_try2.diff, d2087_try2.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.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message