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

Kathey Marsden commented on DERBY-2541:
---------------------------------------

For creating the databases I am going with the JDBCDataSource methods. e.g.
 
    DataSource ds = JDBCDataSource.getDataSource("nordb");
      JDBCDataSource.setBeanProperty(ds, "connectionAttributes", 
                  "create=true;territory=no;collation=TERRITORY_BASED");

I am looking at the removal of the databases.  I was thinking of a  decorator.
TestConfiguration.cleanupDatabases(Test test, String[] databasesToRemove).
Does this sound like a reasonable approach?  There should be code for 
additionalDatabaseDecorator for the removal but I don't see it right away.




> Create initial testing framework for Junit Collation testing
> ------------------------------------------------------------
>
>                 Key: DERBY-2541
>                 URL: https://issues.apache.org/jira/browse/DERBY-2541
>             Project: Derby
>          Issue Type: Sub-task
>          Components: Test
>            Reporter: Kathey Marsden
>         Assigned To: Kathey Marsden
>            Priority: Minor
>             Fix For: 10.3.0.0
>
>
> Collation support testing needs to be able to create multiple new databases 
> with the collation attribute set., upgrade databases etc.  Add a few basic 
> tests showing how this will work even though the feature is not yet 
> functional.  I looked at the additionalDatabaseDecorator, but it does not 
> seem to have a way to change the attributes.   Another option is to use  
> JDBCDataSource.setBeanProperty to set the attributes, but then the cleanup is 
> not automatic. I am just starting to look at this so if anyone has any good 
> ideas, please post.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to