db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel John Debrunner <...@apache.org>
Subject Re: testing against jar files
Date Sat, 04 Feb 2006 02:20:55 GMT
Rick Hillegas wrote:

>> Be interesting to see what cannot be run when using the classes
>> directly
> I'm building the JDBC4 support for autoloading the driver. This involves
> writing your driver name into a special location in the jar file. The
> autoloading test needs to get a connection to Derby without ever
> mentioning the Derby driver. This should only succeed if run against jar
> files under jdk1.6.

Cool I'd hoped someone was going to add that.

You could have/simulate the same behaviour for classes and pre-jdk 1.6
by using the System property jdbc.drivers. Something that isn't
currently tested.

If you do go the jar only route, for purely selfish reasons a jar only
suite would be useful for me in the future. I've been thinking about
tests to ensure the packages are sealed, by having procedures or
functions load classes that extend derby classes. But I'm a long way off
getting round to attempting it.


View raw message