File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
marklogic-client-api/src/test/java/com/marklogic/client/test/rows Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 1515 */
1616package com .marklogic .client .test .rows ;
1717
18+ import com .fasterxml .jackson .databind .node .ObjectNode ;
1819import com .marklogic .client .FailedRequestException ;
1920import com .marklogic .client .datamovement .DataMovementManager ;
2021import com .marklogic .client .datamovement .WriteBatcher ;
@@ -181,12 +182,13 @@ public void testUsingFromParamAndSchematron() {
181182 " <result>pass</result> \n " +
182183 "</user>" ).withFormat (Format .XML ));
183184
184- PlanBuilder .Plan plan = op .fromParam ("myDocs" , "" , op .docColTypes ())
185+ PlanBuilder .ModifyPlan plan = op .fromParam ("myDocs" , "" , op .docColTypes ())
185186 .validateDoc (op .col ("doc" ), op .schemaDefinition ("schematron" ).withSchemaUri ("/validateDoc/schematron.sch" ))
186- .write ()
187- .bindParam ("myDocs" , writeSet );
187+ .write ();
188188
189- List <RowRecord > rows = resultRows (plan );
189+ System .out .println ("PLAN: " + plan .exportAs (ObjectNode .class ).toPrettyString ());
190+
191+ List <RowRecord > rows = resultRows (plan .bindParam ("myDocs" , writeSet ));
190192 assertEquals (1 , rows .size ());
191193 DocumentManager docMgr = Common .client .newDocumentManager ();
192194 assertNotNull (docMgr .exists ("/acme/doc3.xml" ));
You can’t perform that action at this time.
0 commit comments