diff --git a/data/h2gis/src/test/groovy/org/orbisgis/data/GroovyH2GISTest.groovy b/data/h2gis/src/test/groovy/org/orbisgis/data/GroovyH2GISTest.groovy index a949dc7a..87f0ab41 100644 --- a/data/h2gis/src/test/groovy/org/orbisgis/data/GroovyH2GISTest.groovy +++ b/data/h2gis/src/test/groovy/org/orbisgis/data/GroovyH2GISTest.groovy @@ -405,7 +405,7 @@ class GroovyH2GISTest { file << 'CREATE TABLE super as SELECT * FROM $BINIOU;\n --COMMENTS HERE \nSELECT * FROM super;' h2GIS.executeScript("target/myscript.sql", [BINIOU: 'h2gis']) def concat = "" - h2GIS.spatialTable "super" eachRow { row -> concat += "$row.id $row.the_geom $row.geometry\n" } + h2GIS.getSpatialTable( "super") eachRow { row -> concat += "$row.id $row.the_geom $row.geometry\n" } assertEquals("1 POINT (10 10) POINT (10 10)\n2 POINT (1 1) POINT (1 1)\n", concat) }