use of org.talend.components.salesforce.SalesforceConnectionProperties in project tdi-studio-se by Talend.
the class RepositoryUpdateTest method setupPropertiesWithProxy.
private void setupPropertiesWithProxy(String id) {
SalesforceConnectionProperties sfp = new SalesforceConnectionProperties("test");
sfp.init();
sfp.loginType.setValue(SalesforceConnectionProperties.LoginType.Basic);
sfp.userPassword.userId.setStoredValue("myUser");
sfp.userPassword.password.setStoredValue("myPassword");
sfp.proxy.useProxy.setStoredValue(Boolean.TRUE);
sfp.proxy.host.setStoredValue("host");
sfp.proxy.port.setStoredValue(1234);
sfp.proxy.userPassword.userId.setStoredValue("proxyUser");
sfp.proxy.userPassword.password.setStoredValue("proxyPassword");
GenericRepository gr = new GenericRepository();
gr.storeProperties(sfp, "test", id, null);
}
use of org.talend.components.salesforce.SalesforceConnectionProperties in project tdi-studio-se by Talend.
the class RepositoryUpdateTest method setupPropertiesWithProxyEmptyVars.
private void setupPropertiesWithProxyEmptyVars(String id) {
SalesforceConnectionProperties sfp = new SalesforceConnectionProperties("test");
sfp.init();
sfp.loginType.setValue(SalesforceConnectionProperties.LoginType.Basic);
sfp.userPassword.userId.setStoredValue("myUser");
sfp.userPassword.password.setStoredValue("myPassword");
sfp.proxy.useProxy.setStoredValue(Boolean.TRUE);
sfp.proxy.host.setStoredValue(null);
sfp.proxy.port.setStoredValue(null);
sfp.proxy.userPassword.userId.setStoredValue(null);
sfp.proxy.userPassword.password.setStoredValue(null);
GenericRepository gr = new GenericRepository();
gr.storeProperties(sfp, "test", id, null);
}
use of org.talend.components.salesforce.SalesforceConnectionProperties in project tdi-studio-se by Talend.
the class RepositoryUpdateTest method setupPropertiesWithoutProxy.
private void setupPropertiesWithoutProxy(String id) {
SalesforceConnectionProperties sfp = new SalesforceConnectionProperties("test");
sfp.init();
sfp.loginType.setValue(SalesforceConnectionProperties.LoginType.Basic);
sfp.userPassword.userId.setStoredValue("myUser");
sfp.userPassword.password.setStoredValue("myPassword");
GenericRepository gr = new GenericRepository();
gr.storeProperties(sfp, "test", id, null);
}
Aggregations