assertEquals(0, cfg.getDefinitions().size());
}
public void testMinimalRegularConfig() throws ConfigurationException {
cfg.addDataSourceDefinition("ds", minimalProps);
DataSourceDefinition def = cfg.getDefinitions().get(0);
assertEquals("ds", def.getLogicalName());
assertEquals("org.apache.derby.jdbc.EmbeddedDriver", def.getDriver());
assertEquals("url", def.getUrl());
assertEquals("dbType", def.getDbType());
// check default values:
assertNull(def.getUser());
assertNull(def.getPassword());
assertNull(def.getValidationQuery());
assertEquals(-1, def.getMaxPoolSize()); // unlimited
}