use of org.talend.components.common.dataset.DatasetProperties in project components by Talend.
the class SalesforceDatastoreDefinitionTest method testCreateDatasetProperties.
@Test
public void testCreateDatasetProperties() throws Exception {
try (SalesforceTestBase.MockRuntimeSourceOrSinkTestFixture testFixture = new SalesforceTestBase.MockRuntimeSourceOrSinkTestFixture(isA(SalesforceInputProperties.class), createDefaultTestDataset())) {
testFixture.setUp();
DatasetProperties datasetProperties = definition.createDatasetProperties(properties);
assertEquals(properties, datasetProperties.getDatastoreProperties());
Form mainForm = properties.getForm(Form.MAIN);
assertNotNull(mainForm);
assertNotNull(mainForm.getWidget(properties.userId.getName()));
assertNotNull(mainForm.getWidget(properties.password.getName()));
assertNotNull(mainForm.getWidget(properties.securityKey.getName()));
}
}
Aggregations