use of org.talend.components.api.component.runtime.Result in project components by Talend.
the class MarketoWriteOperationTest method testFinalize.
@Test
public void testFinalize() throws Exception {
List<Result> wr = new ArrayList<Result>();
wr.add(new Result());
assertEquals("{successRecordCount=0, rejectRecordCount=0, totalRecordCount=0}", wop.finalize(wr, null).toString());
}
use of org.talend.components.api.component.runtime.Result in project components by Talend.
the class MarketoOutputWriteOperationTest method testFinalize.
@Test
public void testFinalize() throws Exception {
List<Result> wr = new ArrayList<Result>();
wr.add(new Result());
assertEquals("{successRecordCount=0, rejectRecordCount=0, totalRecordCount=0}", wop.finalize(wr, null).toString());
}
use of org.talend.components.api.component.runtime.Result in project components by Talend.
the class SalesforceTestBase method doWriteRows.
// Returns the rows written (having been re-read so they have their Ids)
protected static void doWriteRows(SalesforceConnectionModuleProperties props, List<IndexedRecord> outputRows) throws Exception {
SalesforceSink salesforceSink = new SalesforceSink();
salesforceSink.initialize(adaptor, props);
salesforceSink.validate(adaptor);
SalesforceWriteOperation writeOperation = salesforceSink.createWriteOperation();
Writer<Result> saleforceWriter = writeOperation.createWriter(adaptor);
writeRows(saleforceWriter, outputRows);
}
use of org.talend.components.api.component.runtime.Result in project components by Talend.
the class SalesforceReader method getReturnValues.
@Override
public Map<String, Object> getReturnValues() {
Result result = new Result();
result.totalCount = dataCount;
return result.toMap();
}
use of org.talend.components.api.component.runtime.Result in project components by Talend.
the class SalesforceServerTimeStampReader method getReturnValues.
@Override
public Map<String, Object> getReturnValues() {
Result result = new Result();
result.totalCount = dataCount;
return result.toMap();
}
Aggregations