Search in sources :

Example 1 with JDBCSPSourceOrSink

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);
}
Also used : JDBCSPSourceOrSink(org.talend.components.jdbc.runtime.JDBCSPSourceOrSink) TJDBCSPProperties(org.talend.components.jdbc.tjdbcsp.TJDBCSPProperties) TJDBCSPDefinition(org.talend.components.jdbc.tjdbcsp.TJDBCSPDefinition) ValidationResult(org.talend.daikon.properties.ValidationResult) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 JDBCSPSourceOrSink (org.talend.components.jdbc.runtime.JDBCSPSourceOrSink)1 TJDBCSPDefinition (org.talend.components.jdbc.tjdbcsp.TJDBCSPDefinition)1 TJDBCSPProperties (org.talend.components.jdbc.tjdbcsp.TJDBCSPProperties)1 ValidationResult (org.talend.daikon.properties.ValidationResult)1