use of org.talend.daikon.properties.presentation.Form in project components by Talend.
the class TSalesforceOutputBulkExecPropertiesTest method testSetupLayout.
@Test
public void testSetupLayout() {
properties.init();
Form mainForm = properties.getForm(Form.MAIN);
assertNotNull(mainForm.getWidget(properties.getConnectionProperties().getName()));
assertNotNull(mainForm.getChildForm(properties.getConnectionProperties().getName()).getChildForm(properties.getConnectionProperties().getName()));
Form advForm = properties.getForm(Form.ADVANCED);
assertNotNull(advForm.getWidget(properties.getConnectionProperties().getName()));
assertNotNull(advForm.getChildForm(properties.getConnectionProperties().getName()).getWidget(properties.getConnectionProperties().bulkConnection.getName()));
assertNotNull(advForm.getChildForm(properties.getConnectionProperties().getName()).getWidget(properties.getConnectionProperties().httpTraceMessage.getName()));
}
use of org.talend.daikon.properties.presentation.Form in project components by Talend.
the class TSalesforceOutputBulkExecPropertiesTest method testRefreshLayout.
@Test
public void testRefreshLayout() {
properties.init();
Form mainForm = properties.getForm(Form.MAIN);
properties.refreshLayout(mainForm);
assertTrue(mainForm.getChildForm(properties.getConnectionProperties().getName()).getChildForm(properties.getConnectionProperties().getName()).getWidget(properties.getConnectionProperties().loginType.getName()).isVisible());
Form advForm = properties.getForm(Form.ADVANCED);
properties.refreshLayout(advForm);
assertFalse(advForm.getChildForm(properties.getConnectionProperties().getName()).getWidget(properties.getConnectionProperties().bulkConnection.getName()).isVisible());
assertTrue(advForm.getChildForm(properties.getConnectionProperties().getName()).getWidget(properties.getConnectionProperties().httpTraceMessage.getName()).isVisible());
assertFalse(advForm.getWidget(properties.upsertRelationTable.getName()).isVisible());
}
use of org.talend.daikon.properties.presentation.Form in project components by Talend.
the class SalesforceTestBase method setupModule.
protected void setupModule(SalesforceModuleProperties moduleProps, String module) throws Throwable {
Form f = moduleProps.getForm(Form.REFERENCE);
moduleProps = (SalesforceModuleProperties) PropertiesTestUtils.checkAndBeforeActivate(getComponentService(), f, "moduleName", moduleProps);
moduleProps.moduleName.setValue(module);
moduleProps = (SalesforceModuleProperties) checkAndAfter(f, "moduleName", moduleProps);
}
use of org.talend.daikon.properties.presentation.Form in project components by Talend.
the class SalesforceBulkProperties method setupLayout.
@Override
public void setupLayout() {
super.setupLayout();
Form mainForm = Form.create(this, Form.MAIN);
mainForm.addRow(concurrencyMode);
mainForm.addRow(rowsToCommit);
mainForm.addColumn(bytesToCommit);
mainForm.addRow(waitTimeCheckBatchState);
}
use of org.talend.daikon.properties.presentation.Form in project components by Talend.
the class SalesforceConnectionModuleProperties method setupLayout.
@Override
public void setupLayout() {
super.setupLayout();
Form mainForm = new Form(this, Form.MAIN);
mainForm.addRow(connection.getForm(Form.REFERENCE));
mainForm.addRow(module.getForm(Form.REFERENCE));
Form advancedForm = new Form(this, Form.ADVANCED);
advancedForm.addRow(connection.getForm(Form.ADVANCED));
}
Aggregations