use of org.talend.daikon.runtime.RuntimeInfo in project components by Talend.
the class KafkaInputDefinitionTest method getRuntimeInfo.
@Test
public void getRuntimeInfo() throws Exception {
RuntimeInfo runtimeInfo = definition.getRuntimeInfo(ExecutionEngine.BEAM, null, ConnectorTopology.OUTGOING);
assertNotNull(runtimeInfo);
}
use of org.talend.daikon.runtime.RuntimeInfo in project components by Talend.
the class KafkaOutputDefinitionTest method getRuntimeInfo.
@Test
public void getRuntimeInfo() throws Exception {
RuntimeInfo runtimeInfo = definition.getRuntimeInfo(ExecutionEngine.BEAM, null, ConnectorTopology.INCOMING);
assertNotNull(runtimeInfo);
}
use of org.talend.daikon.runtime.RuntimeInfo in project components by Talend.
the class JmsInputDefinitionTest method testGetRuntimeInfo.
/**
* Check {@link JmsInputDefinition#getRuntimeInfo(ComponentProperties, ConnectorTopology)} returns RuntimeInfo,
* which runtime class name is "org.talend.components.jms.runtime_1_1.JmsSink"
*/
@Test
public void testGetRuntimeInfo() {
RuntimeInfo runtimeInfo = inputDefinition.getRuntimeInfo(ExecutionEngine.BEAM, null, null);
assertEquals("org.talend.components.jms.runtime_1_1.JmsSink", runtimeInfo.getRuntimeClassName());
}
use of org.talend.daikon.runtime.RuntimeInfo in project components by Talend.
the class JmsDatasetDefinitionTest method testGetRuntimeInfo.
/**
* Check {@link JmsDatasetDefinition#getRuntimeInfo(JmsDatasetProperties properties, Object ctx)} returns
* RuntimeInfo, which runtime class name is "org.talend.components.jms.runtime_1_1.DatasetRuntime"
*/
@Test
public void testGetRuntimeInfo() {
RuntimeInfo runtimeInfo = datasetDefinition.getRuntimeInfo(null);
assertEquals("org.talend.components.jms.runtime_1_1.DatasetRuntime", runtimeInfo.getRuntimeClassName());
}
use of org.talend.daikon.runtime.RuntimeInfo in project components by Talend.
the class KinesisDatasetRuntimeTestIT method listStreams.
// Can't use localstack to list streams by region
@Test
public void listStreams() {
KinesisDatasetProperties props = getDatasetForListStreams(getDatastore(), KinesisRegion.DEFAULT, null);
RuntimeInfo ri = def.getRuntimeInfo(props);
try (SandboxedInstance si = RuntimeUtil.createRuntimeClass(ri, getClass().getClassLoader())) {
IKinesisDatasetRuntime runtime = (IKinesisDatasetRuntime) si.getInstance();
runtime.initialize(null, props);
Set<String> streams = runtime.listStreams();
// no exception is ok
assertTrue(true);
}
}
Aggregations