Skip to content

Commit 38218ca

Browse files
committed
updated the test after the chris fix for null values
1 parent 96d4fed commit 38218ca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test-complete/src/test/java/com/marklogic/javaclient/TestEvalJavaScript.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public static void setUpBeforeClass() throws Exception {
6262
setupJavaRESTServer(dbName, fNames[0], restServerName,restPort,false);
6363
TestEvalXquery.createUserRolesWithPrevilages("test-eval", "xdbc:eval", "xdbc:eval-in","xdmp:eval-in","xdbc:invoke-in","any-uri","xdbc:invoke");
6464
TestEvalXquery.createRESTUser("eval-user", "x", "test-eval");
65-
// System.setProperty("org.apache.commons.logging.simplelog.log.org.apache.http.wire", "debug");
65+
System.setProperty("org.apache.commons.logging.simplelog.log.org.apache.http.wire", "debug");
6666
}
6767

6868
@AfterClass
@@ -370,7 +370,7 @@ public void testJSDifferentVariableTypes() throws Exception {
370370
+"var myNull;"
371371
+ "var myJsonArray;"
372372
+ "var myJsonNull;"
373-
+ "results.push(myString,myBool,myInteger,myDecimal,myJsonObject,myJsonArray);"
373+
+ "results.push(myString,myBool,myInteger,myDecimal,myJsonObject,myJsonArray,myNull);"
374374
+"xdmp.arrayValues(results)";
375375

376376
ServerEvaluationCall evl= client.newServerEval().javascript(query1);
@@ -383,7 +383,7 @@ public void testJSDifferentVariableTypes() throws Exception {
383383
.addVariableAs("myJsonArray",new ObjectMapper().createArrayNode().add(1).add(2).add(3))
384384
.addVariableAs("myJsonNull",new ObjectMapper().createObjectNode().nullNode() )
385385
;
386-
System.out.println(query1);
386+
System.out.println(new ObjectMapper().createObjectNode().nullNode().toString());
387387
EvalResultIterator evr = evl.eval();
388388
this.validateReturnTypes(evr);
389389

0 commit comments

Comments
 (0)