You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by Kathey Marsden <km...@sbcglobal.net> on 2005/02/07 23:51:36 UTC

[PATCH] Change to test harness to add startServer property + more test support for the client

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.

startServer={true|false}

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.

Thanks

Kathey