db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Korneliussen <Andreas.Kornelius...@Sun.COM>
Subject Re: JUnit tests and data sources
Date Mon, 27 Mar 2006 08:38:55 GMT
Knut Anders Hatlen wrote:
> Hi,
> 
> 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
>     TestUtil.getDataSource(Properties)
> 
>   - getDataSource() which returns a DataSource with host/port/database
>     set to default values specified by the test harness
> 
>   - getXADataSource, getConnectionPoolDataSource following the same
>     pattern
> 
> Does this plan sound OK?
> 

I think this plan is OK, since you are adding methods which clearly 
belong to the BaseJDBCTestCase class. How you implement these methods, 
is not my main concern at this point, however I will review the changes 
if you like.

-- Andreas

Mime
View raw message