Skip to content

Commit

Permalink
Fixes tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
SPalominos committed Apr 30, 2018
1 parent e21c7e6 commit 441b496
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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');");
Expand All @@ -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');");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)')");
Expand Down Expand Up @@ -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');");
Expand Down

0 comments on commit 441b496

Please sign in to comment.