use of org.talend.components.salesforce.dataset.SalesforceDatasetProperties in project components by Talend.
the class SalesforceSchemaUtilsTest method setUp.
@Before
public void setUp() {
datasetProperties = new SalesforceDatasetProperties("dataset");
datasetProperties.init();
dataprepSource = spy(new SalesforceDataprepSource());
}
use of org.talend.components.salesforce.dataset.SalesforceDatasetProperties in project components by Talend.
the class SalesforceDatasetRuntimeTestIT method testGetSchemaForQuery.
@Test
public void testGetSchemaForQuery() {
SalesforceDatasetProperties dataset = createDatasetPropertiesForQuery();
SalesforceDatasetRuntime runtime = new SalesforceDatasetRuntime();
runtime.initialize(null, dataset);
Schema schema = runtime.getSchema();
Assert.assertNotNull(schema);
Assert.assertTrue("empty schema", schema.getFields().size() > 0);
}
use of org.talend.components.salesforce.dataset.SalesforceDatasetProperties in project components by Talend.
the class SalesforceDatasetRuntimeTestIT method testGetSampleForModule.
@Test
public void testGetSampleForModule() {
SalesforceDatasetProperties dataset = createDatasetPropertiesForModule();
dataset.selectColumnIds.setValue(Arrays.asList("IsDeleted", "Id"));
getSampleAction(dataset);
}
use of org.talend.components.salesforce.dataset.SalesforceDatasetProperties in project components by Talend.
the class SalesforceDatasetRuntimeTestIT method testGetSchemaForModule.
@Test
public void testGetSchemaForModule() {
SalesforceDatasetProperties dataset = createDatasetPropertiesForModule();
dataset.selectColumnIds.setValue(Arrays.asList("IsDeleted", "Id"));
SalesforceDatasetRuntime runtime = new SalesforceDatasetRuntime();
runtime.initialize(null, dataset);
Schema schema = runtime.getSchema();
Assert.assertNotNull(schema);
Assert.assertTrue("empty schema", schema.getFields().size() > 0);
}
use of org.talend.components.salesforce.dataset.SalesforceDatasetProperties in project components by Talend.
the class SalesforceInputPropertiesTest method setUp.
@Before
public void setUp() {
datasetProperties = new SalesforceDatasetProperties("dataset");
properties = new SalesforceInputProperties("root");
}
Aggregations