Search in sources :

Example 1 with JDBCConnectionModule

use of org.talend.components.jdbc.module.JDBCConnectionModule in project components by Talend.

the class CommonUtilsTest method testSetCommonConnectionInfo.

@Test
public void testSetCommonConnectionInfo() {
    JDBCConnectionModule module = new JDBCConnectionModule("module");
    module.jdbcUrl.setValue("url");
    AllSetting setting = new AllSetting();
    CommonUtils.setCommonConnectionInfo(setting, module);
    Assert.assertEquals("url", setting.getJdbcUrl());
}
Also used : JDBCConnectionModule(org.talend.components.jdbc.module.JDBCConnectionModule) AllSetting(org.talend.components.jdbc.runtime.setting.AllSetting) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 JDBCConnectionModule (org.talend.components.jdbc.module.JDBCConnectionModule)1 AllSetting (org.talend.components.jdbc.runtime.setting.AllSetting)1