Search in sources :

Example 16 with MarkLogicOutputProperties

use of org.talend.components.marklogic.tmarklogicoutput.MarkLogicOutputProperties in project components by Talend.

the class MarkLogicSinkTest method testCreateWriteOperation.

@Test
public void testCreateWriteOperation() {
    MarkLogicOutputProperties outputProperties = new MarkLogicOutputProperties("outProps");
    sink.initialize(null, outputProperties);
    MarkLogicWriteOperation writeOperation = sink.createWriteOperation();
    assertEquals(sink, writeOperation.getSink());
}
Also used : MarkLogicOutputProperties(org.talend.components.marklogic.tmarklogicoutput.MarkLogicOutputProperties) Test(org.junit.Test)

Aggregations

MarkLogicOutputProperties (org.talend.components.marklogic.tmarklogicoutput.MarkLogicOutputProperties)16 Test (org.junit.Test)14 DatabaseClient (com.marklogic.client.DatabaseClient)7 RuntimeContainer (org.talend.components.api.container.RuntimeContainer)7 DocumentManager (com.marklogic.client.document.DocumentManager)4 ValidationResult (org.talend.daikon.properties.ValidationResult)3 GenericData (org.apache.avro.generic.GenericData)2 IndexedRecord (org.apache.avro.generic.IndexedRecord)2 DocumentDescriptor (com.marklogic.client.document.DocumentDescriptor)1 DocumentUriTemplate (com.marklogic.client.document.DocumentUriTemplate)1 FileHandle (com.marklogic.client.io.FileHandle)1 AbstractWriteHandle (com.marklogic.client.io.marker.AbstractWriteHandle)1 File (java.io.File)1 Before (org.junit.Before)1 Matchers.anyObject (org.mockito.Matchers.anyObject)1 PrepareForTest (org.powermock.core.classloader.annotations.PrepareForTest)1