Search in sources :

Example 16 with MarkLogicConnectionProperties

use of org.talend.components.marklogic.tmarklogicconnection.MarkLogicConnectionProperties in project components by Talend.

the class MarkLogicDatastoreDefinitionTest method testCreateDatasetProperties.

@Test
public void testCreateDatasetProperties() {
    MarkLogicConnectionProperties datastoreProperties = new MarkLogicConnectionProperties("datastore");
    DatasetProperties<MarkLogicConnectionProperties> dataset = definition.createDatasetProperties(datastoreProperties);
    Assert.assertEquals(datastoreProperties, dataset.getDatastoreProperties());
}
Also used : MarkLogicConnectionProperties(org.talend.components.marklogic.tmarklogicconnection.MarkLogicConnectionProperties) Test(org.junit.Test)

Example 17 with MarkLogicConnectionProperties

use of org.talend.components.marklogic.tmarklogicconnection.MarkLogicConnectionProperties in project components by Talend.

the class MarkLogicBulkLoadTest method setUp.

@Before
public void setUp() {
    bulkLoadRuntime = new MarkLogicBulkLoad();
    connectionProperties = new MarkLogicConnectionProperties("connectionProperties");
    bulkLoadProperties = new MarkLogicBulkLoadProperties("bulkLoadProperties");
}
Also used : MarkLogicConnectionProperties(org.talend.components.marklogic.tmarklogicconnection.MarkLogicConnectionProperties) MarkLogicBulkLoadProperties(org.talend.components.marklogic.tmarklogicbulkload.MarkLogicBulkLoadProperties) Before(org.junit.Before)

Aggregations

MarkLogicConnectionProperties (org.talend.components.marklogic.tmarklogicconnection.MarkLogicConnectionProperties)17 Test (org.junit.Test)8 Before (org.junit.Before)7 DatabaseClient (com.marklogic.client.DatabaseClient)4 MarkLogicConnectionPropertiesTest (org.talend.components.marklogic.tmarklogicconnection.MarkLogicConnectionPropertiesTest)4 RuntimeContainer (org.talend.components.api.container.RuntimeContainer)3 MarkLogicBulkLoadProperties (org.talend.components.marklogic.tmarklogicbulkload.MarkLogicBulkLoadProperties)3 SecurityContext (com.marklogic.client.DatabaseClientFactory.SecurityContext)2 PrepareForTest (org.powermock.core.classloader.annotations.PrepareForTest)2 MarkLogicInputProperties (org.talend.components.marklogic.tmarklogicinput.MarkLogicInputProperties)2 DatabaseClientFactory (com.marklogic.client.DatabaseClientFactory)1 GenericDocumentManager (com.marklogic.client.document.GenericDocumentManager)1 SearchHandle (com.marklogic.client.io.SearchHandle)1 MatchDocumentSummary (com.marklogic.client.query.MatchDocumentSummary)1 QueryManager (com.marklogic.client.query.QueryManager)1 StringQueryDefinition (com.marklogic.client.query.StringQueryDefinition)1 IndexedRecord (org.apache.avro.generic.IndexedRecord)1 MarkLogicErrorCode (org.talend.components.marklogic.exceptions.MarkLogicErrorCode)1 MarkLogicException (org.talend.components.marklogic.exceptions.MarkLogicException)1 ValidationResult (org.talend.daikon.properties.ValidationResult)1