(no commit message)
[utils] / security / usermgt / src / test / resources / spring / test.org.wamblee.security.datasource.xml
diff --git a/security/usermgt/src/test/resources/spring/test.org.wamblee.security.datasource.xml b/security/usermgt/src/test/resources/spring/test.org.wamblee.security.datasource.xml
new file mode 100644 (file)
index 0000000..d718334
--- /dev/null
@@ -0,0 +1,25 @@
+<?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-2.5.xsd">
+
+    <!-- This is the Spring configuration to define the database-related stuff for the
+    all persistence tests.  -->
+    <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
+        <!-- driver classname no longer needed because ServiceLoader is used these days
+        <property name="driverClassName">
+            <value>${database.driver}</value>
+        </property>
+        --> 
+        <property name="url">
+            <value>${database.url}</value>
+        </property>
+        <property name="username">
+            <value>${database.username}</value>
+        </property>
+        <property name="password">
+            <value>${database.password}</value>
+        </property>
+    </bean>
+</beans>