title: How can I make Spring testcontext framework use multiple data sources?
body: <p>I'm trying to integration test my application with Spring TestContext framework. I have done this by extending <code>AbstractTransactionalJUnit4SpringContextTests</code>, as usual. However, my application has three different data sources (with names like xDataSource, yDataSource, zdataSource), så when I try to run the test, the autowiring of data source in <code>AbstractTransactionalJUnit4SpringContextTests</code> won't work, since it looks for a Data Source with autowire-by-type, but finds three, so it does not know which one to choose.</p>
  
  <p>Is there any way to get Spring TestContext Framework to use three data sources? If so; how?</p>