From: <svn...@os...> - 2008-12-29 15:25:30
|
Author: aaime Date: 2008-12-29 10:25:25 -0500 (Mon, 29 Dec 2008) New Revision: 32118 Modified: trunk/modules/unsupported/jdbc-ng/jdbc-postgis/src/test/java/org/geotools/data/postgis/PostGISTestSetup.java Log: Disable loose bbox for unit tests, spatial filter tests require strict one Modified: trunk/modules/unsupported/jdbc-ng/jdbc-postgis/src/test/java/org/geotools/data/postgis/PostGISTestSetup.java =================================================================== --- trunk/modules/unsupported/jdbc-ng/jdbc-postgis/src/test/java/org/geotools/data/postgis/PostGISTestSetup.java 2008-12-29 15:24:23 UTC (rev 32117) +++ trunk/modules/unsupported/jdbc-ng/jdbc-postgis/src/test/java/org/geotools/data/postgis/PostGISTestSetup.java 2008-12-29 15:25:25 UTC (rev 32118) @@ -9,6 +9,11 @@ @Override protected void setUpDataStore(JDBCDataStore dataStore) { super.setUpDataStore(dataStore); + + // the unit tests assume a non loose behaviour + ((PostGISDialect) dataStore.getSQLDialect()).setLooseBBOXEnabled(false); + + // let's work with the most common schema please dataStore.setDatabaseSchema("public"); } |