"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "modules/plugin/jdbc/jdbc-h2/src/test/java/org/geotools/data/h2/H2DataStoreFactoryTest.java" between
geotools-21.1-project.zip and geotools-21.2-project.zip

About: GeoTools (The Open Source Java GIS Toolkit) is a Java code library which provides standards compliant methods for the manipulation of geospatial data.

H2DataStoreFactoryTest.java  (geotools-21.1-project):H2DataStoreFactoryTest.java  (geotools-21.2-project)
skipping to change at line 21 skipping to change at line 21
* *
* This library is distributed in the hope that it will be useful, * This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details. * Lesser General Public License for more details.
*/ */
package org.geotools.data.h2; package org.geotools.data.h2;
import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue; import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail; import static org.junit.Assert.fail;
import java.util.Collections; import java.util.Collections;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
import javax.sql.DataSource; import javax.sql.DataSource;
import org.apache.commons.dbcp.BasicDataSource; import org.apache.commons.dbcp.BasicDataSource;
import org.geotools.data.DataStore; import org.geotools.data.DataStore;
import org.geotools.data.jdbc.datasource.ManageableDataSource; import org.geotools.data.jdbc.datasource.ManageableDataSource;
skipping to change at line 135 skipping to change at line 136
ds.getTypeNames(); ds.getTypeNames();
} finally { } finally {
if (ds != null) { if (ds != null) {
ds.dispose(); ds.dispose();
} }
} }
} finally { } finally {
server.shutdown(); server.shutdown();
} }
} }
@Test
public void testDefaultFetchSizeDataStore() throws Exception {
JDBCDataStore ds = null;
try {
assertNull(params.get(H2DataStoreFactory.FETCHSIZE));
ds = factory.createDataStore(params);
assertNotNull(ds);
assertTrue(ds.getFetchSize() == 1000);
} finally {
if (ds != null) {
ds.dispose();
}
}
}
} }
 End of changes. 2 change blocks. 
0 lines changed or deleted 16 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)