File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
marklogic-client-api/src/test/java/com/marklogic/client/test/document Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 1515 */
1616package com .marklogic .client .test .document ;
1717
18+ import com .marklogic .client .datamovement .DataMovementManager ;
19+ import com .marklogic .client .datamovement .ForestConfiguration ;
1820import com .marklogic .client .document .*;
1921import com .marklogic .client .io .DocumentMetadataHandle ;
2022import com .marklogic .client .io .Format ;
@@ -322,7 +324,11 @@ public void DocumentQueryWithForest() {
322324 textDocumentManager .write (batch );
323325 StructuredQueryDefinition query = new StructuredQueryBuilder ().collection (collectionName );
324326
325- int forestCount = 3 ;
327+ int forestCount ;
328+ DataMovementManager moveMgr = Common .client .newDataMovementManager ();
329+ ForestConfiguration forest = moveMgr .readForestConfig ();
330+ forestCount = forest .listForests ().length ;
331+
326332 DocumentPage [] documents = new DocumentPage [forestCount ];
327333 ArrayList <Set <String >> sets = new ArrayList <Set <String >>();
328334
You can’t perform that action at this time.
0 commit comments