use of org.talend.components.jdbc.runtime.JDBCSPSourceOrSink in project components by Talend.
the class JDBCSPTestIT method test_basic_no_connector.
@Test
public void test_basic_no_connector() throws Exception {
TJDBCSPDefinition definition = new TJDBCSPDefinition();
TJDBCSPProperties properties = DBTestUtils.createCommonJDBCSPProperties(allSetting, definition);
properties.spName.setValue("SYSCS_UTIL.SYSCS_EMPTY_STATEMENT_CACHE");
JDBCSPSourceOrSink sourceOrSink = new JDBCSPSourceOrSink();
sourceOrSink.initialize(null, properties);
ValidationResult result = sourceOrSink.validate(null);
Assert.assertTrue(result.getStatus() == ValidationResult.Result.OK);
}
Aggregations