db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Deepa Remesh (JIRA)" <derby-...@db.apache.org>
Subject [jira] Commented: (DERBY-1075) Combine the script and the test available for upgrade testing into a java test
Date Tue, 21 Mar 2006 23:55:59 GMT
    [ http://issues.apache.org/jira/browse/DERBY-1075?page=comments#action_12371355 ] 

Deepa Remesh commented on DERBY-1075:

Thanks David for looking at the patch.

The reason I have the call to setContextClassLoader is to ensure that any classes which are
used in a particular phase of the test get loaded by the specified class loader. After I saw
David's comment, I re-read the javadoc for this and now I am not sure it serves the purpose
I just mentioned. To ensure the classes get loaded by a specific class loader, I am explicitly
using Class.forName by specifying a class loader (to load TestUtil and metadata classes).
Maybe the call to setContextClassLoader is not serving any purpose. I would appreciate any
insights into use of setContextClassLoader.

David, I would like to see your example to understand how to use interfaces to achieve the
same thing. It would be nice if you can upload the example. Thanks.

> Combine the script and the test available for upgrade testing into a java test
> ------------------------------------------------------------------------------
>          Key: DERBY-1075
>          URL: http://issues.apache.org/jira/browse/DERBY-1075
>      Project: Derby
>         Type: Sub-task
>     Reporter: Deepa Remesh
>     Assignee: Deepa Remesh
>     Priority: Minor
>      Fix For:
>  Attachments: derby-1075-patch1-draft.diff, derby-1075-patch1-draft.status, derby-1075-v1.diff,
derby-1075-v1.status, loader.java, loader_v2.java
> Separating a part of DERBY-514 into a sub-task. This sub-task is to combine the script
'runphases.ksh' and the java file 'phaseTester.java' into a single java test. This will help
to later add the upgrade tests into the regression suite. Also, this sub-task can be done
independent of DERBY-1049 which is blocking DERBY-514.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message