01: package org.geotools.data.h2;
02:
03: import javax.sql.DataSource;
04:
05: import org.apache.commons.dbcp.BasicDataSource;
06: import org.geotools.data.jdbc.JDBCConformanceTestSupport;
07: import org.geotools.data.jdbc.JDBCDataStore;
08:
09: /**
10: * JDBC conformance test for h2.
11: *
12: * @author Justin Deoliveira, The Open Planning Project, jdeolive@openplans.org
13: *
14: */
15: public class H2ConformanceTest extends JDBCConformanceTestSupport {
16:
17: protected DataSource createDataSource() {
18: BasicDataSource dataSource = new BasicDataSource();
19:
20: dataSource.setUrl("jdbc:h2:geotools");
21: dataSource.setDriverClassName("org.h2.Driver");
22: dataSource.setPoolPreparedStatements(false);
23:
24: return dataSource;
25: }
26:
27: protected JDBCDataStore createDataStore() {
28: return new H2DataStore();
29: }
30:
31: }
|