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();
}
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");
}
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;
}
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");
}
Aggregations