db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Myrna van Lunteren" <m.v.lunte...@gmail.com>
Subject Re: [jira] Commented: (DERBY-919) improve pattern for setting up junit tests
Date Thu, 16 Mar 2006 00:36:28 GMT
On 3/15/06, Kristian Waagan (JIRA) <derby-dev@db.apache.org> wrote:
>
>    [
> http://issues.apache.org/jira/browse/DERBY-919?page=comments#action_12370620]
>
> Kristian Waagan commented on DERBY-919:
> ---------------------------------------
>
> Do we still need to have clients for both DB2 JCC and the "old net"
> framework?
> Based on contents of various classes, there seem to be some confusion (ie.
> that DB2JCC has JDBC prefix "jdbc:derby:net", others use "jdbc:db2:").
> Am I correct when saying we only need the "jdbc:derby:net" framework in
> the JDBCClient class, and that this client should be named either "DERBYNET"
> or "JCC"?
> (but not "DB2JCC", as this imply we are connecting to DB2, not Derby)


Right, We do still need support for 'jcc' or 'old net', because there are
customers and we - at IBM - need to test this setup. I think of this as
'DerbyNet' (jdbc:derby:net://...) and 'DerbyNetClient' (jdbc:derby://...)

But support for 'DB2JCC' or jdbc:db2: subprotocol is not needed at this
point, I think, that is from 'before contribution'.
That is, someone might at some time wish to run a test against DB2, so I
would not see it high priority to remove the references from existing files,
but I don't see why we would make an effort to put it in new files.


> Is the EmbeddedSimpleDataSource the only mean to create a connection in
> JSR 169?


Yes...The implementation that we use to test JSR 169 does not have any
java.sql.DriverManager classes.

The discussions on this issue have confused me some. Is it the intention to
have a replacement for the ...functionTests/util/DerbyJUnitTest class?
Could it possibly be used in tests that currently run as .junit from within
the functionTests/harness ?
Or would it be a third setup?

Thx, Myrna

Mime
View raw message