Skip to content

Commit 42fac76

Browse files
committed
Fixed testTransactionCommt ann testTransactionRollback tests to use single doc read version in certain places
1 parent bdd6316 commit 42fac76

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

test-complete/src/test/java/com/marklogic/client/functionaltest/TestBiTemporal.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)