From bdb698b225b7b7caf1132eea9929cdda6123e009 Mon Sep 17 00:00:00 2001 From: Tglman Date: Mon, 12 Feb 2024 13:21:09 +0100 Subject: [PATCH] refactor: changed lucene test to use new query engine --- .../spatial/GeometryCollectionTest.java | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/lucene/src/test/java/com/orientechnologies/spatial/GeometryCollectionTest.java b/lucene/src/test/java/com/orientechnologies/spatial/GeometryCollectionTest.java index 48cb6f012cb..8a1df534339 100644 --- a/lucene/src/test/java/com/orientechnologies/spatial/GeometryCollectionTest.java +++ b/lucene/src/test/java/com/orientechnologies/spatial/GeometryCollectionTest.java @@ -1,6 +1,5 @@ package com.orientechnologies.spatial; -import com.orientechnologies.orient.core.sql.OCommandSQL; import com.orientechnologies.orient.core.sql.executor.OResultSet; import org.junit.Assert; import org.junit.Test; @@ -17,15 +16,13 @@ public void testDeleteVerticesWithGeometryCollection() { .close(); db.command( - new OCommandSQL( - "insert into TestInsert content {'name': 'loc1', 'geometry':" - + " {'@type':'d','@class':'OGeometryCollection','geometries':[{'@type':'d','@class':'OPolygon','coordinates':[[[0,0],[0,10],[10,10],[10,0],[0,0]]]}]}}")) - .execute(); + "insert into TestInsert content {'name': 'loc1', 'geometry':" + + " {'@type':'d','@class':'OGeometryCollection','geometries':[{'@type':'d','@class':'OPolygon','coordinates':[[[0,0],[0,10],[10,10],[10,0],[0,0]]]}]}}") + .close(); db.command( - new OCommandSQL( - "insert into TestInsert content {'name': 'loc2', 'geometry':" - + " {'@type':'d','@class':'OGeometryCollection','geometries':[{'@type':'d','@class':'OPolygon','coordinates':[[[0,0],[0,20],[20,20],[20,0],[0,0]]]}]}}")) - .execute(); + "insert into TestInsert content {'name': 'loc2', 'geometry':" + + " {'@type':'d','@class':'OGeometryCollection','geometries':[{'@type':'d','@class':'OPolygon','coordinates':[[[0,0],[0,20],[20,20],[20,0],[0,0]]]}]}}") + .close(); OResultSet qResult = db.command(