db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kathey Marsden <kmarsdende...@sbcglobal.net>
Subject [PATCH] Change to test harness to add startServer property + more test support for the client
Date Mon, 07 Feb 2005 22:51:36 GMT
Attached is a patch which adds more tests and test support for network
client.  There is no change to the actual function of the tests but
direct references to the IBM Driver have been taken out of the tests
themselves.  With this patch, there are methods in TestUtil which will
perform the desired action based on the framework.

public static void loadDriver() throws Exception
public static String getJdbcUrlPrefix()
public static javax.sql.DataSource getDataSource(Properties attrs)
public static javax.sql.XADataSource getXADatasource(Properties attrs)
public static javax.sql.ConnectionPoolDataSource
getConnectionPoolDataSource(Properties attrs)

This change also adds a new property to RunTest to determine whether the
test will start newtork server.


Defaults to true for DerbyNet and DerbyNetClient. Not relevant for the
embedded framework.

This property is useful for tests which require the framework in order
to load the right driver but start their own server.

If I hear no objections I'll check this in in the morning.



View raw message