Skip to content

Commit 75bf51a

Browse files
georgeajitgeorgeajit
authored andcommitted
No Task - Modified range query test with right arguments types.
1 parent 52d46a7 commit 75bf51a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

marklogic-client-api-functionaltests/src/test/java/com/marklogic/client/functionaltest/TestOpticOnCtsQuery.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ public static void setUp() throws KeyManagementException, NoSuchAlgorithmExcepti
167167
loadFileToDB(client, "city5.json", "/optic/lexicon/test/city5.json", "JSON", new String[]{"/optic/lexicon/test"});
168168
Thread.sleep(10000);
169169
schemaDBclient.release();
170-
171170
}
171+
172172
/*
173173
* Write document using DOMHandle
174174
*/
@@ -550,7 +550,7 @@ public void testJsonPropertyRangeQueryFromViews() throws KeyManagementException,
550550
// plan2 - fromLiterals
551551
ModifyPlan plan2 = p.fromView("opticFunctionalTest4", "master4");
552552

553-
ModifyPlan output = plan1.where(p.cts.jsonPropertyRangeQuery("id", ">", "300"))
553+
ModifyPlan output = plan1.where(p.cts.jsonPropertyRangeQuery(p.xs.string("id"), p.xs.string(">"), p.xs.intVal(300)))
554554
.joinInner(plan2, p.on(
555555
p.schemaCol("opticFunctionalTest4", "detail4", "masterId"),
556556
p.schemaCol("opticFunctionalTest4", "master4", "id")
@@ -899,7 +899,6 @@ public static void tearDownAfterClass() throws Exception
899899
System.out.println("In tear down");
900900
// Delete the temp schema DB after resetting the Schema DB on content DB.
901901
// Else delete fails.
902-
903902
deleteUserRole("opticRole");
904903
deleteRESTUser("opticUser");
905904
setDatabaseProperties(dbName, "schema-database", dbName);

0 commit comments

Comments
 (0)