christiannelson / c5-test-support

Automatically exported from code.google.com/p/c5-test-support
0 stars 0 forks source link

Support for more than one datasource in the Application Context. #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Module: test-support
Version: 0.9.2-m2

Right now the DataSetTestExecutionListener only supports one DataSource in the 
entire application context. There are cases where more than one DataSources are 
defined in the context.

For instance I am working on a DataArchiving application and in the unit tests 
I have to define two datasources (the data is archived/moved from one 
datasource to another).

I have attached a simple patch that allows the said funtionality. If more than 
one datasource bean is found in the application context the code prefers the 
datasource names as "DataSource". Otherwise the first datasource found is used 
for populating the dataset.

Original issue reported on code.google.com by faisalferoz@gmail.com on 21 Jul 2010 at 2:07

Attachments: