Browse Source
This commit refactors the XML configuration used by the tests in the Spr8849Tests test suite so that a unique database name is always generated (via the new 'database-name' attribute that was introduced in SPR-12835) while reusing the same bean name (i.e., 'dataSource'). This is a much more robust alternative to the previous work-around since the name of the DataSource does not randomly change across application contexts, thus allowing proper autowiring by name and bean referencing within XML configuration. Issue: SPR-8849pull/759/head
6 changed files with 40 additions and 38 deletions
@ -1,7 +0,0 @@
@@ -1,7 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd"> |
||||
|
||||
<import resource="datasource-config.xml"/> |
||||
|
||||
</beans> |
||||
@ -1,7 +0,0 @@
@@ -1,7 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd"> |
||||
|
||||
<import resource="datasource-config.xml"/> |
||||
|
||||
</beans> |
||||
Loading…
Reference in new issue