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
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 @@
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 @@
//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"));
}
}