Skip to content

Commit

Permalink
refactor: changed lucene test to use new query engine
Browse files Browse the repository at this point in the history
  • Loading branch information
tglman committed Feb 12, 2024
1 parent 2a88158 commit bdb698b
Showing 1 changed file with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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(
Expand Down

0 comments on commit bdb698b

Please sign in to comment.