Search in sources :

Example 61 with Form

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()));
}
Also used : Form(org.talend.daikon.properties.presentation.Form) Test(org.junit.Test)

Example 62 with Form

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());
}
Also used : Form(org.talend.daikon.properties.presentation.Form) Test(org.junit.Test)

Example 63 with Form

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);
}
Also used : Form(org.talend.daikon.properties.presentation.Form)

Example 64 with Form

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);
}
Also used : Form(org.talend.daikon.properties.presentation.Form)

Example 65 with Form

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));
}
Also used : Form(org.talend.daikon.properties.presentation.Form)

Aggregations

Form (org.talend.daikon.properties.presentation.Form)436 Test (org.junit.Test)199 Widget (org.talend.daikon.properties.presentation.Widget)73 ComponentProperties (org.talend.components.api.properties.ComponentProperties)17 Property (org.talend.daikon.properties.property.Property)13 SalesforceConnectionProperties (org.talend.components.salesforce.SalesforceConnectionProperties)12 Schema (org.apache.avro.Schema)10 ArrayList (java.util.ArrayList)9 ComponentWizard (org.talend.components.api.wizard.ComponentWizard)8 NamedThing (org.talend.daikon.NamedThing)8 INode (org.talend.core.model.process.INode)7 SpringBootTest (org.springframework.boot.test.context.SpringBootTest)6 SnowflakeTableProperties (org.talend.components.snowflake.SnowflakeTableProperties)6 GenericElementParameter (org.talend.designer.core.generic.model.GenericElementParameter)6 ElementParameter (org.talend.designer.core.model.components.ElementParameter)6 List (java.util.List)5 SalesforceInputProperties (org.talend.components.salesforce.dataprep.SalesforceInputProperties)5 PresentationItem (org.talend.daikon.properties.PresentationItem)5 ComponentWizardDefinition (org.talend.components.api.wizard.ComponentWizardDefinition)4 MarkLogicConnectionPropertiesTest (org.talend.components.marklogic.tmarklogicconnection.MarkLogicConnectionPropertiesTest)4