You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/11/07 09:25:13 UTC

[sling-org-apache-sling-datasource] 03/22: SLING-3574 - JDBC DataSource Provider bundle

This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.datasource-1.0.0
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-datasource.git

commit 6019938eca5f6e25b8a8359bc36a8d8e3b48fffc
Author: Chetan Mehrotra <ch...@apache.org>
AuthorDate: Tue May 20 11:43:50 2014 +0000

    SLING-3574 - JDBC DataSource Provider bundle
    
    Adding assertions for service properties
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/contrib/extensions/datasource@1596211 13f79535-47bb-0310-9956-ffa450edef68
---
 .../java/org/apache/sling/extensions/datasource/DataSourceIT.java   | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/test/java/org/apache/sling/extensions/datasource/DataSourceIT.java b/src/test/java/org/apache/sling/extensions/datasource/DataSourceIT.java
index 08720e2..e75e962 100644
--- a/src/test/java/org/apache/sling/extensions/datasource/DataSourceIT.java
+++ b/src/test/java/org/apache/sling/extensions/datasource/DataSourceIT.java
@@ -56,6 +56,10 @@ public class DataSourceIT extends DataSourceTestBase{
         Dictionary<String, Object> p = new Hashtable<String, Object>();
         p.put("url","jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE");
         p.put("datasource.name","test");
+        p.put("datasource.svc.properties",new String[]{
+                "initialSize=5",
+                "testOnBorrow=true",
+        });
         p.put("maxActive",70);
         config.update(p);
 
@@ -72,6 +76,8 @@ public class DataSourceIT extends DataSourceTestBase{
 
         //Cannot access directly so access via reflection
         assertEquals("70", getProperty(ds, "poolProperties.maxActive"));
+        assertEquals("5", getProperty(ds, "poolProperties.initialSize"));
+        assertEquals("true", getProperty(ds, "poolProperties.testOnBorrow"));
     }
 
 }

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.