File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
test-complete/src/test/java/com/marklogic/client/functionaltest Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -1887,7 +1887,10 @@ public void testTransactionCommit() throws Exception {
18871887 // Make sure document is not visible to any other transaction
18881888 boolean exceptionThrown = false ;
18891889 try {
1890- readResults = docMgr .read (docId );
1890+ JacksonDatabindHandle <ObjectNode > contentHandle = new JacksonDatabindHandle <ObjectNode >(
1891+ ObjectNode .class );
1892+ DocumentMetadataHandle metadataHandle = new DocumentMetadataHandle ();
1893+ docMgr .read (docId , metadataHandle , contentHandle );
18911894 } catch (Exception ex ) {
18921895 exceptionThrown = true ;
18931896 }
@@ -2069,7 +2072,10 @@ public void testTransactionRollback() throws Exception {
20692072 // Verify that the document is not there after rollback
20702073 boolean exceptionThrown = false ;
20712074 try {
2072- readResults = docMgr .read (docId );
2075+ JacksonDatabindHandle <ObjectNode > contentHandle = new JacksonDatabindHandle <ObjectNode >(
2076+ ObjectNode .class );
2077+ DocumentMetadataHandle metadataHandle = new DocumentMetadataHandle ();
2078+ docMgr .read (docId , metadataHandle , contentHandle );
20732079 } catch (Exception ex ) {
20742080 exceptionThrown = true ;
20752081 }
You can’t perform that action at this time.
0 commit comments