Search in sources :

Example 41 with JarRuntimeInfo

use of org.talend.components.api.component.runtime.JarRuntimeInfo in project components by Talend.

the class TSalesforceInputDefinitionTest method assertRuntimeInfo.

private void assertRuntimeInfo(RuntimeInfo runtimeInfo) {
    assertNotNull(runtimeInfo);
    assertThat(runtimeInfo, instanceOf(JarRuntimeInfo.class));
    JarRuntimeInfo jarRuntimeInfo = (JarRuntimeInfo) runtimeInfo;
    assertNotNull(jarRuntimeInfo.getJarUrl());
    assertNotNull(jarRuntimeInfo.getDepTxtPath());
    assertEquals(SOURCE_CLASS, jarRuntimeInfo.getRuntimeClassName());
}
Also used : JarRuntimeInfo(org.talend.components.api.component.runtime.JarRuntimeInfo)

Example 42 with JarRuntimeInfo

use of org.talend.components.api.component.runtime.JarRuntimeInfo in project components by Talend.

the class TSalesforceOutputBulkDefinitionTest method assertRuntimeInfo.

private void assertRuntimeInfo(RuntimeInfo runtimeInfo) {
    assertNotNull(runtimeInfo);
    assertThat(runtimeInfo, instanceOf(JarRuntimeInfo.class));
    JarRuntimeInfo jarRuntimeInfo = (JarRuntimeInfo) runtimeInfo;
    assertNotNull(jarRuntimeInfo.getJarUrl());
    assertNotNull(jarRuntimeInfo.getDepTxtPath());
    assertEquals(BULK_FILE_SINK_CLASS, jarRuntimeInfo.getRuntimeClassName());
}
Also used : JarRuntimeInfo(org.talend.components.api.component.runtime.JarRuntimeInfo)

Example 43 with JarRuntimeInfo

use of org.talend.components.api.component.runtime.JarRuntimeInfo in project components by Talend.

the class TSalesforceBulkExecDefinitionTest method assertRuntimeInfo.

private void assertRuntimeInfo(RuntimeInfo runtimeInfo, String clazz) {
    assertNotNull(runtimeInfo);
    assertThat(runtimeInfo, instanceOf(JarRuntimeInfo.class));
    JarRuntimeInfo jarRuntimeInfo = (JarRuntimeInfo) runtimeInfo;
    assertNotNull(jarRuntimeInfo.getJarUrl());
    assertNotNull(jarRuntimeInfo.getDepTxtPath());
    assertEquals(clazz, jarRuntimeInfo.getRuntimeClassName());
}
Also used : JarRuntimeInfo(org.talend.components.api.component.runtime.JarRuntimeInfo)

Example 44 with JarRuntimeInfo

use of org.talend.components.api.component.runtime.JarRuntimeInfo in project components by Talend.

the class TSalesforceGetServerTimestampDefinitionTest method assertRuntimeInfo.

private void assertRuntimeInfo(RuntimeInfo runtimeInfo) {
    assertNotNull(runtimeInfo);
    assertThat(runtimeInfo, instanceOf(JarRuntimeInfo.class));
    JarRuntimeInfo jarRuntimeInfo = (JarRuntimeInfo) runtimeInfo;
    assertNotNull(jarRuntimeInfo.getJarUrl());
    assertNotNull(jarRuntimeInfo.getDepTxtPath());
    assertEquals(SOURCE_CLASS, jarRuntimeInfo.getRuntimeClassName());
}
Also used : JarRuntimeInfo(org.talend.components.api.component.runtime.JarRuntimeInfo)

Aggregations

JarRuntimeInfo (org.talend.components.api.component.runtime.JarRuntimeInfo)44 URL (java.net.URL)28 MalformedURLException (java.net.MalformedURLException)27 ComponentException (org.talend.components.api.exception.ComponentException)27 RuntimeInfo (org.talend.daikon.runtime.RuntimeInfo)7 Test (org.junit.Test)5 File (java.io.File)1 IOException (java.io.IOException)1 ArrayList (java.util.ArrayList)1 Bundle (org.osgi.framework.Bundle)1 BusinessException (org.talend.commons.exception.BusinessException)1 ConnectorTopology (org.talend.components.api.component.ConnectorTopology)1 NetSuiteConnectionProperties (org.talend.components.netsuite.connection.NetSuiteConnectionProperties)1 ModuleNeeded (org.talend.core.model.general.ModuleNeeded)1 MavenArtifact (org.talend.core.runtime.maven.MavenArtifact)1