use of org.talend.daikon.runtime.RuntimeInfo in project components by Talend.
the class TSalesforceConnectionDefinitionTest method testRuntimeInfo.
@Test
public void testRuntimeInfo() {
RuntimeInfo runtimeInfo = definition.getRuntimeInfo(ExecutionEngine.DI, properties, ConnectorTopology.NONE);
assertThat(runtimeInfo, instanceOf(JarRuntimeInfo.class));
JarRuntimeInfo jarRuntimeInfo = (JarRuntimeInfo) runtimeInfo;
assertNotNull(jarRuntimeInfo.getJarUrl());
assertNotNull(jarRuntimeInfo.getDepTxtPath());
assertEquals(SOURCE_OR_SINK_CLASS, jarRuntimeInfo.getRuntimeClassName());
runtimeInfo = definition.getRuntimeInfo(ExecutionEngine.DI, properties, ConnectorTopology.OUTGOING);
assertThat(runtimeInfo, nullValue(RuntimeInfo.class));
}
use of org.talend.daikon.runtime.RuntimeInfo in project components by Talend.
the class TSalesforceGetServerTimestampDefinitionTest method testRuntimeInfo.
@Test
public void testRuntimeInfo() {
RuntimeInfo runtimeInfo = definition.getRuntimeInfo(ExecutionEngine.DI, properties, ConnectorTopology.OUTGOING);
assertRuntimeInfo(runtimeInfo);
runtimeInfo = definition.getRuntimeInfo(ExecutionEngine.DI, properties, ConnectorTopology.NONE);
assertThat(runtimeInfo, nullValue(RuntimeInfo.class));
}
use of org.talend.daikon.runtime.RuntimeInfo in project components by Talend.
the class CouchbaseInputDefinitionTest method testGetRuntimeInfo.
@Test
public void testGetRuntimeInfo() {
RuntimeInfo runtimeInfo = definition.getRuntimeInfo(ExecutionEngine.DI, null, ConnectorTopology.OUTGOING);
Assert.assertEquals(CouchbaseSource.class.getName(), runtimeInfo.getRuntimeClassName());
}
use of org.talend.daikon.runtime.RuntimeInfo in project components by Talend.
the class BigQueryDatasetDefinitionTest method testRuntimeInfo.
/**
* Check {@link BigQueryDatasetDefinition#getRuntimeInfo(BigQueryDatasetProperties)} returns RuntimeInfo,
* which runtime class name is "org.talend.components.bigquery.runtime.BigQueryDatasetRuntime"
*/
@Test
@Ignore("This can't work unless the runtime jar is already installed in maven!")
public void testRuntimeInfo() {
RuntimeInfo runtimeInfo = datasetDefinition.getRuntimeInfo(null);
assertEquals("org.talend.components.bigquery.runtime.BigQueryDatasetRuntime", runtimeInfo.getRuntimeClassName());
}
use of org.talend.daikon.runtime.RuntimeInfo in project components by Talend.
the class BigQueryOutputDefinitionTest method testRuntimeInfo.
@Test
@Ignore("This can't work unless the runtime jar is already installed in maven!")
public void testRuntimeInfo() {
RuntimeInfo runtimeInfo = outputDefinition.getRuntimeInfo(ExecutionEngine.BEAM, null, null);
assertEquals("org.talend.components.bigquery.runtime.BigQueryOutputRuntime", runtimeInfo.getRuntimeClassName());
}
Aggregations