use of org.talend.components.jdbc.runtime.setting.AllSetting in project components by Talend.
the class QueryGeneratorTest method testGenericJDBCWithSQLServerDriverClass.
@Test
public void testGenericJDBCWithSQLServerDriverClass() {
AllSetting setting = new AllSetting();
setting.setDriverClass("net.sourceforge.jtds.jdbc.Driver");
setting.setSchema(createTestSchema());
String result = QueryUtils.generateNewQuery("General JDBC", null, null, "context.mytable", setting);
Assert.assertEquals("\"SELECT \n [\"+context.mytable+\"].[ID1], \n [\"+context.mytable+\"].[NAME1]\nFROM [\"+context.mytable+\"]\"", result);
}
use of org.talend.components.jdbc.runtime.setting.AllSetting in project components by Talend.
the class TJDBCCommitPropertiesTest method testGetRuntimeSetting.
/**
* Run the AllSetting getRuntimeSetting() method test.
*
* @throws Exception
*
* @generatedBy CodePro at 17-6-20 PM3:13
*/
@Test
public void testGetRuntimeSetting() throws Exception {
TJDBCCommitProperties fixture = new TJDBCCommitProperties("");
AllSetting result = fixture.getRuntimeSetting();
assertNotNull(result);
}
use of org.talend.components.jdbc.runtime.setting.AllSetting in project components by Talend.
the class TJDBCInputPropertiesTest method testGetRuntimeSetting.
/**
* Run the AllSetting getRuntimeSetting() method test.
*
* @throws Exception
*
* @generatedBy CodePro at 17-6-20 PM3:13
*/
@Test
public void testGetRuntimeSetting() throws Exception {
TJDBCInputProperties fixture = new TJDBCInputProperties("input");
fixture.setupProperties();
AllSetting result = fixture.getRuntimeSetting();
assertNotNull(result);
}
use of org.talend.components.jdbc.runtime.setting.AllSetting in project components by Talend.
the class TJDBCOutputPropertiesTest method testGetRuntimeSetting.
/**
* Run the AllSetting getRuntimeSetting() method test.
*
* @throws Exception
*
* @generatedBy CodePro at 17-6-20 PM3:13
*/
@Test
public void testGetRuntimeSetting() throws Exception {
TJDBCOutputProperties fixture = new TJDBCOutputProperties("output");
fixture.setupProperties();
AllSetting result = fixture.getRuntimeSetting();
assertNotNull(result);
}
use of org.talend.components.jdbc.runtime.setting.AllSetting in project components by Talend.
the class TJDBCRollbackPropertiesTest method testGetRuntimeSetting.
/**
* Run the AllSetting getRuntimeSetting() method test.
*
* @throws Exception
*
* @generatedBy CodePro at 17-6-20 PM3:13
*/
@Test
public void testGetRuntimeSetting() throws Exception {
TJDBCRollbackProperties fixture = new TJDBCRollbackProperties("");
AllSetting result = fixture.getRuntimeSetting();
assertNotNull(result);
}
Aggregations