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/10/18 23:23:47 UTC
[sling-org-apache-sling-datasource] 03/35: SLING-3574 - JDBC
DataSource Provider bundle
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-datasource.git
commit e60fe3e2b57f0ebcdac80f5004cc4502e41759b0
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@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>.