db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Knut Anders Hatlen <Knut.Hat...@Sun.COM>
Subject JUnit tests and data sources
Date Mon, 27 Mar 2006 06:40:32 GMT

I am writing a JUnit test and need to get access to DataSource,
XADataSource and ConnectionPoolDataSource. My plan is to add
get*DataSource() methods to BaseJDBCTestCase, for instance:

  - getDataSource(Properties attrs) which just invokes

  - getDataSource() which returns a DataSource with host/port/database
    set to default values specified by the test harness

  - getXADataSource, getConnectionPoolDataSource following the same

Does this plan sound OK?

Knut Anders

View raw message