use of com.marklogic.client.document.DocumentManager in project components by Talend.
the class MarkLogicWriterTest method testWriteNull.
@Test
public void testWriteNull() throws IOException {
DocumentManager markLogicDocMngrMock = mock(DocumentManager.class);
MarkLogicSink someSink = new MarkLogicSink();
someSink.ioProperties = new MarkLogicOutputProperties("outputProps");
writer = someSink.createWriteOperation().createWriter(null);
writer.docMgr = markLogicDocMngrMock;
writer.write(null);
verifyZeroInteractions(markLogicDocMngrMock);
}
Aggregations