Search in sources :

Example 1 with MarkLogicBulkLoadProperties

use of org.talend.components.marklogic.tmarklogicbulkload.MarkLogicBulkLoadProperties in project components by Talend.

the class MarkLogicInternalBulkLoadRunnerTest method setUp.

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

Example 2 with MarkLogicBulkLoadProperties

use of org.talend.components.marklogic.tmarklogicbulkload.MarkLogicBulkLoadProperties in project components by Talend.

the class MarkLogicExternalBulkLoadRunnerTest 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)

Example 3 with MarkLogicBulkLoadProperties

use of org.talend.components.marklogic.tmarklogicbulkload.MarkLogicBulkLoadProperties in project components by Talend.

the class MarkLogicBulkLoad method initialize.

@Override
public ValidationResult initialize(RuntimeContainer container, Properties properties) {
    ValidationResultMutable validationResult = new ValidationResultMutable();
    if (properties instanceof MarkLogicBulkLoadProperties) {
        bulkLoadProperties = (MarkLogicBulkLoadProperties) properties;
        if (isRequiredPropertiesMissed()) {
            validationResult.setStatus(ValidationResult.Result.ERROR);
            validationResult.setMessage(MESSAGES.getMessage("error.missedProperties"));
        }
    } else {
        validationResult.setStatus(ValidationResult.Result.ERROR);
        validationResult.setMessage(MESSAGES.getMessage("error.wrongProperties"));
    }
    return validationResult;
}
Also used : ValidationResultMutable(org.talend.daikon.properties.ValidationResultMutable) MarkLogicBulkLoadProperties(org.talend.components.marklogic.tmarklogicbulkload.MarkLogicBulkLoadProperties)

Example 4 with MarkLogicBulkLoadProperties

use of org.talend.components.marklogic.tmarklogicbulkload.MarkLogicBulkLoadProperties 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

MarkLogicBulkLoadProperties (org.talend.components.marklogic.tmarklogicbulkload.MarkLogicBulkLoadProperties)4 Before (org.junit.Before)3 MarkLogicConnectionProperties (org.talend.components.marklogic.tmarklogicconnection.MarkLogicConnectionProperties)3 ValidationResultMutable (org.talend.daikon.properties.ValidationResultMutable)1