diff --git a/libreplan-business/pom.xml b/libreplan-business/pom.xml index dd6e64c0d..4e12400ad 100644 --- a/libreplan-business/pom.xml +++ b/libreplan-business/pom.xml @@ -32,6 +32,11 @@ junit junit + + + com.jolbox + bonecp + org.springframework diff --git a/libreplan-business/src/test/resources/libreplan-business-spring-config-test.xml b/libreplan-business/src/test/resources/libreplan-business-spring-config-test.xml index 3b48f8430..a28faa52a 100644 --- a/libreplan-business/src/test/resources/libreplan-business-spring-config-test.xml +++ b/libreplan-business/src/test/resources/libreplan-business-spring-config-test.xml @@ -7,10 +7,17 @@ http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd"> + + + class="org.springframework.jdbc.datasource.LazyConnectionDataSourceProxy" + p:targetDataSource-ref="dataSourceReal" /> junit junit + + + com.jolbox + bonecp + org.hibernate hibernate-validator diff --git a/libreplan-webapp/src/test/resources/libreplan-webapp-spring-config-test.xml b/libreplan-webapp/src/test/resources/libreplan-webapp-spring-config-test.xml index 7cfe39394..3c630e2f9 100644 --- a/libreplan-webapp/src/test/resources/libreplan-webapp-spring-config-test.xml +++ b/libreplan-webapp/src/test/resources/libreplan-webapp-spring-config-test.xml @@ -7,10 +7,17 @@ http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd"> + + + class="org.springframework.jdbc.datasource.LazyConnectionDataSourceProxy" + p:targetDataSource-ref="dataSourceReal" /> diff --git a/pom.xml b/pom.xml index 01e369507..ccea5be21 100644 --- a/pom.xml +++ b/pom.xml @@ -263,6 +263,13 @@ 4.4 test + + + com.jolbox + bonecp + 0.7.1.RELEASE + test +