Resolves test failures due to bean creation order
Resolves issues where beans will now be created in the correct order.
This commit is contained in:
@@ -225,7 +225,7 @@ public class JdbcBatchItemWriterAutoConfigurationTests {
|
||||
}
|
||||
|
||||
@Bean
|
||||
public DataSource dataSource() {
|
||||
public DataSource dataSource(Server server) {
|
||||
DriverManagerDataSource dataSource = new DriverManagerDataSource();
|
||||
dataSource.setDriverClassName(DATASOURCE_DRIVER_CLASS_NAME);
|
||||
dataSource.setUrl(DATASOURCE_URL);
|
||||
|
||||
@@ -321,7 +321,7 @@ public class JdbcCursorItemReaderAutoConfigurationTests {
|
||||
}
|
||||
|
||||
@Bean
|
||||
public DataSource dataSource() {
|
||||
public DataSource dataSource(Server server) {
|
||||
DriverManagerDataSource dataSource = new DriverManagerDataSource();
|
||||
dataSource.setDriverClassName(DATASOURCE_DRIVER_CLASS_NAME);
|
||||
dataSource.setUrl(DATASOURCE_URL);
|
||||
|
||||
Reference in New Issue
Block a user