From 441b496980205999e1c3a4866645a103aa87bda1 Mon Sep 17 00:00:00 2001 From: Palominos Sylvain Date: Mon, 30 Apr 2018 09:21:15 +0200 Subject: [PATCH] Fixes tests. --- .../java/org/h2gis/functions/io/dbf/DBFImportExportTest.java | 2 ++ .../org/h2gis/functions/io/geojson/GeojsonImportExportTest.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/h2gis-functions/src/test/java/org/h2gis/functions/io/dbf/DBFImportExportTest.java b/h2gis-functions/src/test/java/org/h2gis/functions/io/dbf/DBFImportExportTest.java index 3e09c7c4f8..4a1d36185b 100644 --- a/h2gis-functions/src/test/java/org/h2gis/functions/io/dbf/DBFImportExportTest.java +++ b/h2gis-functions/src/test/java/org/h2gis/functions/io/dbf/DBFImportExportTest.java @@ -234,6 +234,7 @@ public void testWriteReal() throws SQLException, IOException { public void testWriteReadEmptyTable1() throws SQLException { Statement stat = connection.createStatement(); stat.execute("DROP TABLE IF EXISTS TABLE_EMPTY"); + stat.execute("DROP TABLE IF EXISTS TABLE_EMPTY_READ"); stat.execute("create table TABLE_EMPTY(id INTEGER)"); stat.execute("CALL DBFWrite('target/empty.dbf', 'TABLE_EMPTY');"); stat.execute("CALL DBFRead('target/empty.dbf', 'TABLE_EMPTY_READ');"); @@ -248,6 +249,7 @@ public void testWriteReadEmptyTable1() throws SQLException { public void testWriteReadEmptyTable2() throws SQLException { Statement stat = connection.createStatement(); stat.execute("DROP TABLE IF EXISTS TABLE_EMPTY"); + stat.execute("DROP TABLE IF EXISTS TABLE_EMPTY_READ"); stat.execute("create table TABLE_EMPTY()"); stat.execute("CALL DBFWrite('target/empty.dbf', 'TABLE_EMPTY');"); stat.execute("CALL DBFRead('target/empty.dbf', 'TABLE_EMPTY_READ');"); diff --git a/h2gis-functions/src/test/java/org/h2gis/functions/io/geojson/GeojsonImportExportTest.java b/h2gis-functions/src/test/java/org/h2gis/functions/io/geojson/GeojsonImportExportTest.java index 7162e83ced..6663dd7ce9 100644 --- a/h2gis-functions/src/test/java/org/h2gis/functions/io/geojson/GeojsonImportExportTest.java +++ b/h2gis-functions/src/test/java/org/h2gis/functions/io/geojson/GeojsonImportExportTest.java @@ -198,6 +198,7 @@ public void testGeojsonGeometryCollection() throws Exception { public void testWriteReadGeojsonPoint() throws Exception { Statement stat = connection.createStatement(); stat.execute("DROP TABLE IF EXISTS TABLE_POINTS"); + stat.execute("DROP TABLE IF EXISTS TABLE_POINTS_READ"); stat.execute("create table TABLE_POINTS(the_geom POINT)"); stat.execute("insert into TABLE_POINTS values( 'POINT(1 2)')"); stat.execute("insert into TABLE_POINTS values( 'POINT(10 200)')"); @@ -714,6 +715,7 @@ public void testReadAdditionalProps() throws Exception { public void testWriteReadEmptyTable() throws SQLException { Statement stat = connection.createStatement(); stat.execute("DROP TABLE IF EXISTS TABLE_POINTS"); + stat.execute("DROP TABLE IF EXISTS TABLE_POINTS_READ"); stat.execute("create table TABLE_POINTS(the_geom POINT)"); stat.execute("CALL GeoJsonWrite('target/points.geojson', 'TABLE_POINTS');"); stat.execute("CALL GeoJsonRead('target/points.geojson', 'TABLE_POINTS_READ');");