Search in sources :

Example 6 with JarRuntimeInfo

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

the class TSalesforceOutputDefinitionTest 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(SINK_CLASS, jarRuntimeInfo.getRuntimeClassName());
}
Also used : JarRuntimeInfo(org.talend.components.api.component.runtime.JarRuntimeInfo)

Example 7 with JarRuntimeInfo

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

the class TSalesforceGetUpdatedDefinitionTest 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 8 with JarRuntimeInfo

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

the class SalesforceInputDefinitionTest 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(DATAPREP_SOURCE_CLASS, jarRuntimeInfo.getRuntimeClassName());
}
Also used : JarRuntimeInfo(org.talend.components.api.component.runtime.JarRuntimeInfo)

Example 9 with JarRuntimeInfo

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

the class SalesforceDatasetDefinitionTest 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(DATASET_RUNTIME_CLASS, jarRuntimeInfo.getRuntimeClassName());
}
Also used : JarRuntimeInfo(org.talend.components.api.component.runtime.JarRuntimeInfo)

Example 10 with JarRuntimeInfo

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

the class SalesforceDatastoreDefinitionTest 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(DATASTORE_RUNTIME_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